mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
3ef5596505
Backport of 7e29f2d64f
from 10.1.
Create_field does not set BINARY_FLAG, so the check didn't work at all.
Also, character sets were already compared, so this check would've been
redundant (if it would've worked).
51 lines
1.9 KiB
Text
51 lines
1.9 KiB
Text
#
|
|
# Start of 10.1 tests
|
|
#
|
|
#
|
|
# MDEV-8948 ALTER ... INPLACE does work for BINARY, BLOB
|
|
#
|
|
CREATE TABLE t1 (a TINYBLOB);
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a MEDIUMBLOB);
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a BLOB);
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a LONGBLOB);
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
ALTER TABLE t1 MODIFY a TINYBLOB, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
ALTER TABLE t1 MODIFY a MEDIUMBLOB, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
ALTER TABLE t1 MODIFY a BLOB, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
ALTER TABLE t1 MODIFY a LONGBLOB, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
ALTER TABLE t1 MODIFY a POLYGON, ALGORITHM=INPLACE;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a POLYGON);
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
|
DROP TABLE t1;
|
|
CREATE TABLE t1 (a POLYGON);
|
|
ALTER TABLE t1 MODIFY a POLYGON, ALGORITHM=INPLACE;
|
|
DROP TABLE t1;
|
|
#
|
|
# End of 10.1 tests
|
|
#
|