2015-10-15 18:25:54 +04:00
|
|
|
#
|
|
|
|
# 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;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a MEDIUMBLOB);
|
|
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a BLOB);
|
|
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a LONGBLOB);
|
|
|
|
ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
|
|
ALTER TABLE t1 MODIFY a TINYBLOB, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
|
|
ALTER TABLE t1 MODIFY a MEDIUMBLOB, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
|
|
ALTER TABLE t1 MODIFY a BLOB, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
|
|
ALTER TABLE t1 MODIFY a LONGBLOB, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
DROP TABLE t1;
|
|
|
|
CREATE TABLE t1 (a GEOMETRY);
|
|
|
|
ALTER TABLE t1 MODIFY a POLYGON, ALGORITHM=INPLACE;
|
2016-10-03 18:49:44 +03:00
|
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported for this operation. Try ALGORITHM=COPY
|
2015-10-15 18:25:54 +04:00
|
|
|
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
|
|
|
|
#
|