mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-27 15:53:19 +01:00
quote all table or column names, to allow to use reserved words of dbms
This commit is contained in:
parent
90572da26b
commit
6b304ea500
@ -239,9 +239,9 @@ class ADODB_DataDict {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if name contains special characters, quote it
|
// 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;
|
return $quote . $name . $quote;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user