-
-
Notifications
You must be signed in to change notification settings - Fork 579
Closed
dolthub/go-mysql-server
#1922Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersgood reproEasily reproducible bugsEasily reproducible bugssqlIssue with SQLIssue with SQL
Description
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
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersgood reproEasily reproducible bugsEasily reproducible bugssqlIssue with SQLIssue with SQL