diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-07-03 20:08:10 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-07-04 07:48:46 +0400 |
commit | 9c9e0ac73d50782264d2cf52010465b06b5d65e2 (patch) | |
tree | 049a0a5f968430f8f70b5181a0939399eccb1d36 /mysql-test/main/sp_gis.test | |
parent | 695230c067208014dc164cde9c0657487d399d9b (diff) | |
download | mariadb-git-9c9e0ac73d50782264d2cf52010465b06b5d65e2.tar.gz |
MDEV-19944 Remove GIS data types from keyword list in lex.h
Diffstat (limited to 'mysql-test/main/sp_gis.test')
-rw-r--r-- | mysql-test/main/sp_gis.test | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mysql-test/main/sp_gis.test b/mysql-test/main/sp_gis.test index 51ed78b27d5..4148a4ec423 100644 --- a/mysql-test/main/sp_gis.test +++ b/mysql-test/main/sp_gis.test @@ -37,3 +37,66 @@ drop function a; drop function x; drop function y; +--echo # +--echo # Start of 10.5 tests +--echo # + +--echo # +--echo # MDEV-19944 Remove GIS data types from keyword list in lex.h +--echo # + +CREATE FUNCTION point() RETURNS POINT RETURN NULL; +--disable_warnings +SELECT point(); +--enable_warnings +DROP FUNCTION point; + +CREATE FUNCTION point(x INT) RETURNS POINT RETURN NULL; +--disable_warnings +SELECT point(1); +--enable_warnings +DROP FUNCTION point; + +CREATE FUNCTION point(x INT, y INT) RETURNS POINT RETURN NULL; +SELECT AsText(point(1,1)); +DROP FUNCTION point; + +CREATE FUNCTION linestring() RETURNS POINT RETURN NULL; +--disable_warnings +SELECT linestring(); +--enable_warnings +DROP FUNCTION linestring; + +CREATE FUNCTION polygon() RETURNS POINT RETURN NULL; +--disable_warnings +SELECT polygon(); +--enable_warnings +DROP FUNCTION polygon; + +CREATE FUNCTION multipoint() RETURNS POINT RETURN NULL; +--disable_warnings +SELECT multipoint(); +--enable_warnings +DROP FUNCTION multipoint; + +CREATE FUNCTION multilinestring() RETURNS POINT RETURN NULL; +--disable_warnings +SELECT multilinestring(); +--enable_warnings +DROP FUNCTION multilinestring; + +CREATE FUNCTION multipolygon() RETURNS POINT RETURN NULL; +--disable_warnings +SELECT multipolygon(); +--enable_warnings +DROP FUNCTION multipolygon; + +CREATE FUNCTION geometrycollection() RETURNS POINT RETURN NULL; +--disable_warnings +SELECT geometrycollection(); +--enable_warnings +DROP FUNCTION geometrycollection; + +--echo # +--echo # End of 10.5 tests +--echo # |