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: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1, 10.2
    • 10.2
    • 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

        Activity

          People

            bar Alexander Barkov
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.