diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2011-03-21 09:21:14 +0300 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2011-03-21 09:21:14 +0300 |
commit | 1077c85fe3450b2a3ae73f7f01cdaf097417f998 (patch) | |
tree | 6b1dd84f127f10fb5f814b21833a5eb4b8e0671f /mysql-test | |
parent | 3e97851eb6569a113a9d6e888af7dcbf5eb65082 (diff) | |
download | mariadb-git-1077c85fe3450b2a3ae73f7f01cdaf097417f998.tar.gz |
Fix for bug#51875/#11759554 backported from mysql-5.1.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/gis.result | 7 | ||||
-rw-r--r-- | mysql-test/t/gis.test | 10 |
2 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index 158fdb69c10..a3b4e8a1783 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -996,4 +996,11 @@ ERROR 42000: You have an error in your SQL syntax; check the manual that corresp ALTER TABLE t2 ADD SPATIAL INDEX USING BTREE (col1); ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'USING BTREE (col1)' at line 1 DROP TABLE t2; +# +# BUG#51875: crash when loading data into geometry function polyfromwkb +# +SET @a=0x00000000030000000100000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440; +SET @a=POLYFROMWKB(@a); +SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440; +SET @a=POLYFROMWKB(@a); End of 5.0 tests diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index d2bfe7d90d4..8abd2fc2da9 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -685,4 +685,14 @@ ALTER TABLE t2 ADD SPATIAL INDEX USING BTREE (col1); DROP TABLE t2; + +--echo # +--echo # BUG#51875: crash when loading data into geometry function polyfromwkb +--echo # +SET @a=0x00000000030000000100000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440; +SET @a=POLYFROMWKB(@a); +SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440; +SET @a=POLYFROMWKB(@a); + + --echo End of 5.0 tests |