diff options
author | William Desportes <williamdes@wdes.fr> | 2019-04-03 17:42:31 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2019-04-16 12:11:28 +0300 |
commit | 3399e5babd7246696e5c29f1e897aa0cdc7a4a64 (patch) | |
tree | 503c80ccf1817d8021f729e9773be19c13d75d4e /tbl_replace.php | |
parent | 9ed068aacba8744556f4f310a6c18d43768a8f3e (diff) |
Fix spatial functions
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'tbl_replace.php')
-rw-r--r-- | tbl_replace.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tbl_replace.php b/tbl_replace.php index 3d709a0789..c4b4f4a7eb 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -121,6 +121,19 @@ $gis_from_text_functions = array( 'MPolyFromText', ); +if ($GLOBALS['dbi']->getVersion() >= 50600) { + $gis_from_text_functions = array( + 'ST_GeomFromText', + 'ST_GeomCollFromText', + 'ST_LineFromText', + 'ST_MLineFromText', + 'ST_PointFromText', + 'ST_MPointFromText', + 'ST_PolyFromText', + 'ST_MPolyFromText', + ); +} + $gis_from_wkb_functions = array( 'GeomFromWKB', 'GeomCollFromWKB', |