diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-06-27 20:46:45 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-07-05 17:15:59 +0200 |
commit | 785e2248bd12b2b8fc417776c4b24fb62daab35d (patch) | |
tree | 01138b878fe08de0f9c9444c77327e73abf43414 /mysql-test/suite/parts/t | |
parent | 504eff0ca13ef93fa46f919e1fb60b58ac9a34eb (diff) | |
download | mariadb-git-785e2248bd12b2b8fc417776c4b24fb62daab35d.tar.gz |
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
Diffstat (limited to 'mysql-test/suite/parts/t')
-rw-r--r-- | mysql-test/suite/parts/t/quoting.test | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/suite/parts/t/quoting.test b/mysql-test/suite/parts/t/quoting.test new file mode 100644 index 00000000000..4fec9a4f319 --- /dev/null +++ b/mysql-test/suite/parts/t/quoting.test @@ -0,0 +1,19 @@ +# +# 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; |