mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into rakia.gmz:/home/kgeorge/mysql/autopush/B23578-5.0-opt
This commit is contained in:
@ -881,3 +881,14 @@ ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
|
||||
INSERT INTO t1(foo) VALUES ('');
|
||||
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a INT AUTO_INCREMENT, b POINT NOT NULL, KEY (a), SPATIAL KEY (b));
|
||||
INSERT INTO t1 (b) VALUES (GeomFromText('POINT(1 2)'));
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize status OK
|
||||
DROP TABLE t1;
|
||||
|
@ -254,3 +254,20 @@ INSERT INTO t1() VALUES ();
|
||||
--error 1416
|
||||
INSERT INTO t1(foo) VALUES ('');
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug #23578: Corruption prevents Optimize table from working properly with a
|
||||
# spatial index
|
||||
#
|
||||
|
||||
CREATE TABLE t1 (a INT AUTO_INCREMENT, b POINT NOT NULL, KEY (a), SPATIAL KEY (b));
|
||||
|
||||
INSERT INTO t1 (b) VALUES (GeomFromText('POINT(1 2)'));
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
INSERT INTO t1 (b) SELECT b FROM t1;
|
||||
|
||||
OPTIMIZE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user