mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-13089 identifier quoting in partitioning
don't print partitioning expression as it was entered by the user, use Item::print() according to the sql_mode and sql_quote_show_create
This commit is contained in:
@ -8,9 +8,9 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL
|
||||
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1
|
||||
PARTITION BY LIST (a)
|
||||
(PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE,
|
||||
PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE)
|
||||
PARTITION BY LIST (`a`)
|
||||
(PARTITION `p0` VALUES IN (1) ENGINE = EXAMPLE,
|
||||
PARTITION `p1` VALUES IN (2) ENGINE = EXAMPLE)
|
||||
drop table t1;
|
||||
create table t1 (a int not null)
|
||||
engine=example ull=12340
|
||||
@ -21,9 +21,9 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL
|
||||
) ENGINE=EXAMPLE DEFAULT CHARSET=latin1 `ull`=12340
|
||||
PARTITION BY LIST (a)
|
||||
(PARTITION p0 VALUES IN (1) ENGINE = EXAMPLE,
|
||||
PARTITION p1 VALUES IN (2) ENGINE = EXAMPLE)
|
||||
PARTITION BY LIST (`a`)
|
||||
(PARTITION `p0` VALUES IN (1) ENGINE = EXAMPLE,
|
||||
PARTITION `p1` VALUES IN (2) ENGINE = EXAMPLE)
|
||||
drop table t1;
|
||||
select 1;
|
||||
1
|
||||
|
Reference in New Issue
Block a user