Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/mysql-test/suite/innodb/t/   (MariaDB Server Version 8.1-8.4©)  Datei vom 1.9.2026 mit Größe 726 B image not shown  

Quelle  innodb_gis.test  Sprache: unbekannt

 
Spracherkennung für: .test vermutete Sprache: SQL {SQL[180] ADA[54] Fortran[54]} [Methode: maximale Elemente, drei Dimensionen]

--source include/have_innodb.inc
SET default_storage_engine=innodb;
--source include/gis_generic.inc
--source include/gis_keys.inc

#
# Bug #15680 (SPATIAL key in innodb)
#
# MySQL 5.7 Introduces SPATIAL keys for InnoDB
#--error ER_TABLE_CANT_HANDLE_SPKEYS
create table t1 (g geometry not null, spatial gk(g)) engine=innodb;
drop table t1;

#
# MDEV-12462 SPATIAL index fails to work with CONTAINS
#

create table t1(id int not null primary key, g1 geometry not null, spatial index(g1));
insert into t1 values(1, polygonfromtext('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'));
explain select id from t1 where contains(g1, pointfromtext('POINT(1 1)'));
select id from t1 where contains(g1, pointfromtext('POINT(1 1)'));
drop table t1;

[Dauer der Verarbeitung: 0.27 Sekunden, vorverarbeitet 2026-10-08]