mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
MDEV-13626: Merge InnoDB test cases from MySQL 5.7
Add missing innodb_gis tests.
This commit is contained in:
parent
f7090df712
commit
42e3e57426
64 changed files with 15225 additions and 0 deletions
32
mysql-test/suite/innodb_gis/t/bug17057168.test
Normal file
32
mysql-test/suite/innodb_gis/t/bug17057168.test
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#********************************************************
|
||||
# Bug 17057168 - LARGE PERFORMANCE REGRESSION FOR INNODB
|
||||
# GEOMETRY/SPATIAL INDEX LOOKUP
|
||||
#********************************************************
|
||||
--source include/have_geometry.inc
|
||||
--source include/not_embedded.inc
|
||||
--source include/no_valgrind_without_big.inc
|
||||
|
||||
CREATE DATABASE geotest;
|
||||
use geotest;
|
||||
CREATE TABLE tmp (id int unsigned NOT NULL PRIMARY KEY);
|
||||
INSERT INTO tmp VALUES (0), (1), (2), (3), (4), (5), (6), (7), (8), (9);
|
||||
INSERT INTO tmp SELECT 10+id FROM tmp;
|
||||
INSERT INTO tmp SELECT 20+id FROM tmp;
|
||||
INSERT INTO tmp SELECT 40+id FROM tmp;
|
||||
INSERT INTO tmp SELECT 80+id FROM tmp;
|
||||
|
||||
CREATE TABLE t1 (id int unsigned NOT NULL auto_increment PRIMARY KEY,
|
||||
location point, INDEX (location)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 (location) SELECT POINT(tmp1.id, tmp2.id) FROM tmp tmp1,
|
||||
tmp tmp2 ORDER BY tmp1.id, tmp2.id;
|
||||
|
||||
#Befor fix, the row number will be the total number of index recs,
|
||||
#After fix, the row number will be 1.
|
||||
EXPLAIN SELECT id, ST_AsText(location) FROM t1 WHERE location = POINT(1,
|
||||
2);
|
||||
SELECT id, ST_AsText(location) FROM t1 WHERE location = POINT(1, 2);
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE tmp;
|
||||
|
||||
DROP DATABASE geotest;
|
||||
Loading…
Add table
Add a link
Reference in a new issue