소스 검색

fixed update geometry field by function GeomFromText

Piotr Labudda 8 년 전
부모
커밋
6b187912c2
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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
 	}