"quote all table or column names, to allow to use reserved words of dbms"

This commit is contained in:
Ralf Becker 2009-08-19 10:20:01 +00:00
parent 1bb3fadd1f
commit 74a41902b8

View File

@ -239,9 +239,9 @@ class ADODB_DataDict {
}
// if name contains special characters, quote it
$regex = ($allowBrackets) ? $this->nameRegexBrackets : $this->nameRegex;
/*$regex = ($allowBrackets) ? $this->nameRegexBrackets : $this->nameRegex;
if ( !preg_match('/^[' . $regex . ']+$/', $name) ) {
if ( !preg_match('/^[' . $regex . ']+$/', $name) )*/ {
return $quote . $name . $quote;
}