1
0
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:
Sergei Golubchik
2017-06-27 20:46:45 +02:00
parent 504eff0ca1
commit 785e2248bd
140 changed files with 12910 additions and 12831 deletions

View File

@ -62,9 +62,9 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
`filler` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MEMORY AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
PARTITION BY RANGE (id)
(PARTITION pa100 VALUES LESS THAN (100) ENGINE = MEMORY,
PARTITION paMax VALUES LESS THAN MAXVALUE ENGINE = MEMORY)
PARTITION BY RANGE (`id`)
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = MEMORY,
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = MEMORY)
show create table test.regular_tbl;
Table Create Table
regular_tbl CREATE TABLE `regular_tbl` (
@ -106,9 +106,9 @@ byrange_tbl CREATE TABLE `byrange_tbl` (
`filler` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MEMORY AUTO_INCREMENT=201 DEFAULT CHARSET=latin1
PARTITION BY RANGE (id)
(PARTITION pa100 VALUES LESS THAN (100) ENGINE = MEMORY,
PARTITION paMax VALUES LESS THAN MAXVALUE ENGINE = MEMORY)
PARTITION BY RANGE (`id`)
(PARTITION `pa100` VALUES LESS THAN (100) ENGINE = MEMORY,
PARTITION `paMax` VALUES LESS THAN MAXVALUE ENGINE = MEMORY)
show create table test.regular_tbl;
Table Create Table
regular_tbl CREATE TABLE `regular_tbl` (