Ver Fonte

fixed update geometry field by function GeomFromText

Piotr Labudda há 8 anos atrás
pai
commit
6b187912c2
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      SE/se-lib/Core/Pdo.php

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

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