R27672 - /trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php

Author: ralfbecker
New Revision: 27672

URL: http://www.egroupware.org/viewvc/egroupware?rev=27672&view=rev
Log:
“quote all table or column names, to allow to use reserved words of dbms”

Modified:
trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php

Modified: trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php?rev=27672&r1=27671&r2=27672&view=diff

— trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php (original)
+++ trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php Wed Aug 19 12:20:01 2009
@@ -239,9 +239,9 @@
}

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

Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what’s new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs