[Mapbender-commits] r1518 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jul 19 08:37:04 EDT 2007


Author: christoph
Date: 2007-07-19 08:37:04 -0400 (Thu, 19 Jul 2007)
New Revision: 1518

Modified:
   trunk/mapbender/http/classes/class_checkInput.php
Log:
now mysql works properly, although PREPAREDSTATEMENTS are set to "true"

PREPAREDSTATEMENTS are only implemented for PostgreSQL

Modified: trunk/mapbender/http/classes/class_checkInput.php
===================================================================
--- trunk/mapbender/http/classes/class_checkInput.php	2007-07-19 09:14:15 UTC (rev 1517)
+++ trunk/mapbender/http/classes/class_checkInput.php	2007-07-19 12:37:04 UTC (rev 1518)
@@ -29,7 +29,7 @@
 		if(count($v) != count($t)){
 			$e = new mb_exception("array params and array types have a different count  in ".$_SERVER['SCRIPT_FILENAME'].": Sql: ".$q);
 		}
-		if(PREPAREDSTATEMENTS == true){
+		if(PREPAREDSTATEMENTS == true && SYS_DBTYPE == "pgsql"){
 			$this->v = $v;
 		}
 		else{



More information about the Mapbender_commits mailing list