[MDEV-13089] identifier quoting in partitioning Created: 2017-06-14  Updated: 2018-09-21  Resolved: 2017-07-05

Status: Closed
Project: MariaDB Server
Component/s: Partitioning
Affects Version/s: 5.5, 10.0, 10.1, 10.2
Fix Version/s: 10.2.7

Type: Bug Priority: Major
Reporter: Sergei Golubchik Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
causes MDEV-16178 MariaDB client puts unnecessary backt... Closed
Relates
relates to MDEV-13017 LOCK TABLE fails with irrelevant erro... Closed

 Description   

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_mode=default;
lock tables t1 read local;
unlock tables;
show create table t1;
show create table t2;
drop table t1;

  • expression is stored as is, parsed as is, printed as is
  • partition name stored/printed always with sql_quote_show_create=0, inconsistent, not future-proof

Generated at Thu Feb 08 08:02:49 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.