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

Inconsistency between ALTER from BIT to VARCHAR and from BIT to TEXT

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.11, 12.3
    • 10.11, 11.4, 11.8, 12.3
    • Data types
    • None

    Description

      DROP TABLE IF EXISTS t1;
      CREATE TABLE t1 (a BIT(8),b BIT(8));
      INSERT INTO t1 VALUES (123,123);
      ALTER TABLE t1 MODIFY a TEXT, MODIFY b VARCHAR(10);
      SELECT * FROM t1;

      +------+------+
      | a    | b    |
      +------+------+
      | {    | 123  |
      +------+------+

      Notice different results.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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