diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-01-30 20:18:25 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-01-30 20:18:25 +0200 |
commit | 6d390bab4a0695fedeead35e78111e1033f7b3df (patch) | |
tree | d02c2b38010ca61adb829a45df3e1051463300a8 /mysql-test/suite/innodb_gis | |
parent | 8317ce73d448134a1c8c4a85fbe293b329a5593a (diff) | |
parent | 446b3d356218bff06efe4b3f5df89595cdfe8284 (diff) | |
download | mariadb-git-6d390bab4a0695fedeead35e78111e1033f7b3df.tar.gz |
Merge 10.2 into bb-10.2-ext
Diffstat (limited to 'mysql-test/suite/innodb_gis')
-rw-r--r-- | mysql-test/suite/innodb_gis/r/rtree_debug.result | 9 | ||||
-rw-r--r-- | mysql-test/suite/innodb_gis/t/rtree_debug.test | 5 | ||||
-rw-r--r-- | mysql-test/suite/innodb_gis/t/rtree_search.test | 5 |
3 files changed, 9 insertions, 10 deletions
diff --git a/mysql-test/suite/innodb_gis/r/rtree_debug.result b/mysql-test/suite/innodb_gis/r/rtree_debug.result index e3877880387..11e2cd40e25 100644 --- a/mysql-test/suite/innodb_gis/r/rtree_debug.result +++ b/mysql-test/suite/innodb_gis/r/rtree_debug.result @@ -38,14 +38,11 @@ t1 CREATE TABLE `t1` ( `c2` geometry NOT NULL, SPATIAL KEY `idx` (`c2`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 -SET DEBUG='+d,row_merge_ins_spatial_fail'; -Warnings: -Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead +SET @save_dbug = @@SESSION.debug_dbug; +SET debug_dbug='+d,row_merge_ins_spatial_fail'; create spatial index idx2 on t1(c2); ERROR HY000: Got error 1000 "Unknown error 1000" from storage engine InnoDB -SET DEBUG='-d,row_merge_ins_spatial_fail'; -Warnings: -Warning 1287 '@@debug' is deprecated and will be removed in a future release. Please use '@@debug_dbug' instead +SET debug_dbug = @save_dbug; show create table t1; Table Create Table t1 CREATE TABLE `t1` ( diff --git a/mysql-test/suite/innodb_gis/t/rtree_debug.test b/mysql-test/suite/innodb_gis/t/rtree_debug.test index 3ba8ecc0655..2f7c2806c68 100644 --- a/mysql-test/suite/innodb_gis/t/rtree_debug.test +++ b/mysql-test/suite/innodb_gis/t/rtree_debug.test @@ -49,10 +49,11 @@ create spatial index idx on t1(c2); show create table t1; -SET DEBUG='+d,row_merge_ins_spatial_fail'; +SET @save_dbug = @@SESSION.debug_dbug; +SET debug_dbug='+d,row_merge_ins_spatial_fail'; --error ER_GET_ERRNO create spatial index idx2 on t1(c2); -SET DEBUG='-d,row_merge_ins_spatial_fail'; +SET debug_dbug = @save_dbug; show create table t1; # Check table. diff --git a/mysql-test/suite/innodb_gis/t/rtree_search.test b/mysql-test/suite/innodb_gis/t/rtree_search.test index 3c591004042..6bbd84a25cf 100644 --- a/mysql-test/suite/innodb_gis/t/rtree_search.test +++ b/mysql-test/suite/innodb_gis/t/rtree_search.test @@ -38,9 +38,10 @@ select count(*) from t1 where MBRWithin(t1.c2, @g1); set @g1 = ST_GeomFromText('Polygon((100 100,100 800,800 800,800 100,100 100))'); select count(*) from t1 where MBRWithin(t1.c2, @g1); -#SET DEBUG='+d, rtr_pessimistic_position'; +#SET @save_dbug= @@session.debug_dbug; +#SET debug_dbug = '+d,rtr_pessimistic_position'; #select count(*) from t1 where MBRWithin(t1.c2, @g1); -#SET DEBUG='-d, rtr_pessimistic_position'; +#SET debug_dbug = @save_dbug; # Equality search set @g1 = ST_GeomFromText('Point(1 1)'); |