mariadb/mysql-test/suite/innodb_gis/r/bug17057168.result
Marko Mäkelä 8dc77a72ea MDEV-14057 InnoDB GIS tests fail
Fix and enable some of the tests; some remain disabled.

The tests innodb_gis.rtree_old and innodb_gis.row_format
duplicated some versions of the test main.gis-rtree.
Instead of duplicating, source that test, in a new test
innodb_gis.innodb_gis_rtree.

Introduce innodb_row_format.combinations. Due to this,
ROW_FORMAT=COMPRESSED will not be covered in some tests
where it is covered in MySQL 5.7.
2018-01-04 19:46:23 +02:00

22 lines
913 B
Text

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;
EXPLAIN SELECT id, ST_AsText(location) FROM t1 WHERE location = POINT(1,
2);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ref location location 28 const 1 Using where
SELECT id, ST_AsText(location) FROM t1 WHERE location = POINT(1, 2);
id ST_AsText(location)
163 POINT(1 2)
DROP TABLE t1;
DROP TABLE tmp;
DROP DATABASE geotest;