Skip to content

SHOW VARIABLES should render enum/set values #6370

@fulghum

Description

@fulghum

SHOW VARIABLES seems to show the enum/set bitmask value, and not render the enum/set string values, which differs from MySQL's behavior.

In Dolt:

dolt> show variables like '%sql_mode%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| sql_mode      | 256   |
+---------------+-------+

Versus in MySQL:

mysql> show variables like '%sql_mode%';
+---------------+-----------------------------------------------------------------------------------------------------------------------+
| Variable_name | Value                                                                                                                 |
+---------------+-----------------------------------------------------------------------------------------------------------------------+
| sql_mode      | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION |
+---------------+-----------------------------------------------------------------------------------------------------------------------+

(Note that Dolt does render the enum/set strings when running SELECT @@sql_mode, just not with SHOW VARIABLES.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersgood reproEasily reproducible bugssqlIssue with SQL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions