Always pass the SRID part of a geometry property with the GeomFromText function
This commit is contained in:
parent
37a3dd6c6b
commit
327041874e
|
@ -1079,7 +1079,7 @@ if (!defined("DRIVER")) {
|
||||||
$return = "CONV($return, 2, 10) + 0";
|
$return = "CONV($return, 2, 10) + 0";
|
||||||
}
|
}
|
||||||
if (preg_match("~geometry|point|linestring|polygon~", $field["type"])) {
|
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;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ Do not attempt logging in without password (bug #676)
|
||||||
Stretch footer over the whole table width (bug #624)
|
Stretch footer over the whole table width (bug #624)
|
||||||
Allow overwriting tables when copying them
|
Allow overwriting tables when copying them
|
||||||
MySQL: Fix creating users and changing password in MySQL 8 (bug #663)
|
MySQL: Fix creating users and changing password in MySQL 8 (bug #663)
|
||||||
|
MySQL: Pass SRID to GeomFromText
|
||||||
|
|
||||||
Adminer 4.7.1 (released 2019-01-24):
|
Adminer 4.7.1 (released 2019-01-24):
|
||||||
Display the tables scrollbar (bug #647)
|
Display the tables scrollbar (bug #647)
|
||||||
|
|
Loading…
Reference in a new issue