mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
785e2248bd
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
19 lines
588 B
Text
19 lines
588 B
Text
#
|
|
# MDEV-13089 identifier quoting in partitioning
|
|
#
|
|
source include/have_partition.inc;
|
|
set sql_mode=ansi_quotes;
|
|
create table t1 ("select" int) partition by range ("select") (partition "select" values less than maxvalue);
|
|
create table t2 (f1 int) partition by range (f1) (partition p1 values less than maxvalue);
|
|
show create table t1;
|
|
show create table t2;
|
|
set sql_quote_show_create=0;
|
|
show create table t1;
|
|
show create table t2;
|
|
set sql_mode=default;
|
|
show create table t1;
|
|
show create table t2;
|
|
set sql_quote_show_create=1;
|
|
show create table t1;
|
|
show create table t2;
|
|
drop table t1, t2;
|