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

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

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.5, 10.0, 10.1, 10.2
    • Fix Version/s: 10.2
    • Component/s: OTHER
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: