diff options
Diffstat (limited to 'mysql-test/t/sp_gis.test')
-rw-r--r-- | mysql-test/t/sp_gis.test | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/t/sp_gis.test b/mysql-test/t/sp_gis.test new file mode 100644 index 00000000000..f1d489e4cc5 --- /dev/null +++ b/mysql-test/t/sp_gis.test @@ -0,0 +1,35 @@ +-- source include/have_geometry.inc + +use test; + +# +# BUG#21025: misleading error message when creating functions named 'x', or 'y' +# + +--disable_warnings +drop function if exists a; +drop function if exists x; +drop function if exists y; +--enable_warnings + +create function a() returns int +return 1; + +create function x() returns int +return 2; + +create function y() returns int +return 3; + +select a(); +--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT +select x(); +--error ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT +select y(); +select x(PointFromText("POINT(10 20)")), y(PointFromText("POINT(10 20)")); +select test.a(), test.x(), test.y(); + +drop function a; +drop function x; +drop function y; + |