mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-27316 Assertion `!(index)->is_spatial()' failed
This issue is caused by MDEV-24621
(commit 045757af4c
).
InnoDB tries to insert the number of rows into an empty spatial
index table, but it fails to apply the buffered insert.
InnoDB should insert into the spatial index directly instead of
buffering the insert operation.
This commit is contained in:
@@ -222,3 +222,12 @@ ALTER TABLE t1 ADD COLUMN row_start BIGINT UNSIGNED AS ROW START,
|
||||
ADD COLUMN row_end BIGINT UNSIGNED AS ROW END,
|
||||
ADD PERIOD FOR SYSTEM_TIME(row_start,row_end), WITH SYSTEM VERSIONING;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# MDEV-27316 Assertion `!(index)->is_spatial()' failed.
|
||||
#
|
||||
CREATE TABLE t (c POINT NOT NULL, SPATIAL INDEX(c)) ENGINE=InnoDB;
|
||||
INSERT INTO t VALUES (POINT(1, 1));
|
||||
SELECT COUNT(*) FROM t WHERE MBRWithin(t.c, POINT(1,1));
|
||||
COUNT(*)
|
||||
1
|
||||
DROP TABLE t;
|
||||
|
Reference in New Issue
Block a user