Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-1228

ALTER TABLE...CHANGE COLUMN broken for TEXT data types

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.2
    • 1.1.4
    • DDLProc
    • None
    • 2018-05, 2018-06

    Description

      Doing the following will trigger an error:

      CREATE TABLE test.tmp3
      (t TINYTEXT)
      ENGINE=COLUMNSTORE;
       
      ALTER TABLE test.tmp3 CHANGE COLUMN t t2 TINYTEXT;
      

      The error is:
      ERROR 1815 (HY000): Internal error: CAL0001: Alter table Failed: Changing the datatype of a column is not supported

      The cause is typesAreSame() in ddlpackageproc/altertableprocessor.cpp doesn't check for all the TEXT types and fails on the ones it does catch.

      Attachments

        Issue Links

          Activity

            People

              dleeyh Daniel Lee (Inactive)
              LinuxJedi Andrew Hutchings (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.