]> granicus.if.org Git - php/commitdiff
Use ST_Y() instead of the deprecated/removed Y() in test
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 5 Feb 2021 13:53:19 +0000 (14:53 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Fri, 5 Feb 2021 13:53:19 +0000 (14:53 +0100)
ext/mysqli/tests/bug74779.phpt

index 88e658ef61117fbe1f882013a5702d8db84586f2..3aa44e92807689558fec93a306212bc5afdece20 100644 (file)
@@ -23,7 +23,7 @@ if (!$link->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, true)) {
     printf("[003] [%d] %s\n", $link->errno, $link->error);
 }
 
-if (!$result = $link->query("SELECT Y(Point(56.7, 53.34))")) {
+if (!$result = $link->query("SELECT ST_Y(Point(56.7, 53.34))")) {
     printf("[004] [%d] %s\n", $link->errno, $link->error);
 }
 
@@ -37,6 +37,6 @@ mysqli_close($link);
 ?>
 --EXPECT--
 array(1) {
-  ["Y(Point(56.7, 53.34))"]=>
+  ["ST_Y(Point(56.7, 53.34))"]=>
   float(53,34)
 }