Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8948

ALTER ... INPLACE does work for BINARY, BLOB

    XMLWordPrintable

    Details

      Description

      ALTER..INPLACE does not work for BINARY data type

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a BINARY(10));
      ALTER TABLE t1 MODIFY a BINARY(10), ALGORITHM=INPLACE;

      returns

      ERROR 1846 (0A000): ALGORITHM=INPLACE is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY.

      The same error happens for BLOB:

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a BLOB);
      ALTER TABLE t1 MODIFY a BLOB, ALGORITHM=INPLACE;

      The same problem happens for GEOMETRY:

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a GEOMETRY);
      ALTER TABLE t1 MODIFY a GEOMETRY, ALGORITHM=INPLACE;

      Note, it does work fine for VARBINARY:

      DROP TABLE IF EXISTS t1; CREATE TABLE t1 (a VARBINARY(10));
      ALTER TABLE t1 MODIFY a VARBINARY(10), ALGORITHM=INPLACE;

        Attachments

          Activity

            People

            Assignee:
            bar Alexander Barkov
            Reporter:
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: