mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 01:54:00 +02:00
Always pass the SRID part of a geometry property with the GeomFromText function
This commit is contained in:
committed by
Jakub Vrana
parent
37a3dd6c6b
commit
327041874e
@@ -1079,7 +1079,7 @@ if (!defined("DRIVER")) {
|
||||
$return = "CONV($return, 2, 10) + 0";
|
||||
}
|
||||
if (preg_match("~geometry|point|linestring|polygon~", $field["type"])) {
|
||||
$return = (min_version(8) ? "ST_" : "") . "GeomFromText($return)";
|
||||
$return = (min_version(8) ? "ST_" : "") . "GeomFromText($return, SRID($field[field]))";
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user