Explorar el Código

added NULL to PDO insert

Piotr Labudda hace 8 años
padre
commit
26c88b82a0
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      SE/se-lib/Core/Pdo.php

+ 1 - 0
SE/se-lib/Core/Pdo.php

@@ -628,6 +628,7 @@ EOF_STRUCT_MYSQL;
 
 	public function convertValueToSqlSafe($value, $xsdType = null) {
 		if ('NOW()' === $value) return 'NOW()';
+		else if (NULL === $value) return 'NULL';
 		else return $this->quote($value, PDO::PARAM_STR);// TODO: use $sqlSchema if set
 	}