Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.6(EOL), 10.11, 11.4, 11.8, 12.3, 13.0, 13.1
-
Can result in unexpected behaviour
-
Q2/2026 Server Development, Q3/2026 Server Maintenance
Description
e.g.
set sql_mode='ignore_bad_table_options'; |
create table t1 (a int) opt=`two words`; |
show create table t1; |
drop table t1; |
the value of the option is a string "two words", but it's shown as
CREATE TABLE `t1` (
|
`a` int(11) DEFAULT NULL
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci `opt`=two words
|
The second, related, problem is with embedded comment markers.
set sql_mode='ignore_bad_table_options'; |
create table t1 (a int) opt='foo*/bar'; |
set sql_mode=''; |
show create table t1; |
drop table t1; |
gets printed as
CREATE TABLE `t1` (
|
`a` int(11) DEFAULT NULL
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci /* `opt`='foo*/bar' */
|
Attachments
Issue Links
- relates to
-
MDEV-40159 single quote in DATA DIRECTORY breaks SHOW CREATE TABLE
-
- Closed
-
-
MDEV-39818 backtick in FK names breaks SHOW CREATE TABLE
-
- Closed
-
- links to