From 6b304ea50059b16f95c11addc8a743ba4d1ef975 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 9 Sep 2009 08:27:00 +0000 Subject: [PATCH] quote all table or column names, to allow to use reserved words of dbms --- phpgwapi/inc/adodb/adodb-datadict.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/adodb/adodb-datadict.inc.php b/phpgwapi/inc/adodb/adodb-datadict.inc.php index ec309f197b..f9a41992a0 100644 --- a/phpgwapi/inc/adodb/adodb-datadict.inc.php +++ b/phpgwapi/inc/adodb/adodb-datadict.inc.php @@ -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; }