mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Use ST_GeomFromText in MySQL 8 (bug #574)
This commit is contained in:
@@ -1021,7 +1021,7 @@ if (!defined("DRIVER")) {
|
||||
$return = "CONV($return, 2, 10) + 0";
|
||||
}
|
||||
if (preg_match("~geometry|point|linestring|polygon~", $field["type"])) {
|
||||
$return = "GeomFromText($return)";
|
||||
$return = (min_version(8) ? "ST_" : "") . "GeomFromText($return)";
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
@@ -1,4 +1,5 @@
|
||||
Adminer 4.6.1-dev:
|
||||
MySQL: Support geometry in MySQL 8 (bug #574)
|
||||
PostgreSQL: Don't treat interval type as number (bug #474)
|
||||
PostgreSQL: Fix condition for selecting no rows
|
||||
|
||||
|
Reference in New Issue
Block a user