mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -447,7 +447,7 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
PARTITION BY KEY (a)
|
||||
PARTITION BY KEY (`a`)
|
||||
drop table t1;
|
||||
create table t1 (a int)
|
||||
engine = innodb
|
||||
@ -461,8 +461,8 @@ Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
PARTITION BY LIST (a)
|
||||
(PARTITION p0 VALUES IN (0) ENGINE = InnoDB)
|
||||
PARTITION BY LIST (`a`)
|
||||
(PARTITION `p0` VALUES IN (0) ENGINE = InnoDB)
|
||||
drop table t1;
|
||||
SET SQL_MODE=default;
|
||||
create table t1
|
||||
@ -540,10 +540,10 @@ t1 CREATE TABLE `t1` (
|
||||
`int_column` int(11) DEFAULT NULL,
|
||||
`char_column` char(5) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
PARTITION BY RANGE (int_column)
|
||||
SUBPARTITION BY KEY (char_column)
|
||||
PARTITION BY RANGE (`int_column`)
|
||||
SUBPARTITION BY KEY (`char_column`)
|
||||
SUBPARTITIONS 2
|
||||
(PARTITION p1 VALUES LESS THAN (5) ENGINE = MyISAM)
|
||||
(PARTITION `p1` VALUES LESS THAN (5) ENGINE = MyISAM)
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB
|
||||
PARTITION BY list(a) (PARTITION p1 VALUES IN (1));
|
||||
@ -588,7 +588,7 @@ t1 CREATE TABLE `t1` (
|
||||
`b` int(11) NOT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
PARTITION BY KEY (a)
|
||||
PARTITION BY KEY (`a`)
|
||||
PARTITIONS 2
|
||||
SELECT * FROM t1;
|
||||
a b
|
||||
|
Reference in New Issue
Block a user