[MDEV-6006] MySQL BUG#13702397 - 64211: 'CREATE TABLE ... LIKE ...' FAILS TO KEEP CASE Created: 2014-04-02  Updated: 2022-09-08

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.10
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Sergey Vojtovich Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-4784 merge test cases from 5.6 Stalled
Sprint: 10.0.20

 Description   

revno: 3690.1.153
committer: Raghav Kapoor <raghav.kapoor@oracle.com>
branch nick: mysql-trunk-bug-13702397
timestamp: Fri 2012-03-23 15:26:55 +0530
message:
  BUG#13702397 - 64211: 'CREATE TABLE ... LIKE ...' FAILS TO KEEP CASE
 
  BACKGROUND:
  Regular Create Table Statements properly keep the case on
  a case insensitive file system like Windows or Mac OS X when
  lower_case_table_names= 2 whereas while creating tables LIKE
  another (create table <tablename> LIKE <tablename>), the table
  name case is ignored on a case insensitive file system when
  lower_case_table_names= 2. This problem is mentioned as part
  of this bug report. This behaviour was annoying and not
  consistent with the documentation.
 
  FIX:
  This bug is fixed by populating the alias in local_create_info
  structure in mysql_create_like_table function when create table
  <tablename> LIKE <tablename> query is issued equal to alias
  information that is stored in create_info structure.This
  assignment was missing due to which this bug was happening.
  Also a testcase has been written in lowercase_table2.test and
  the corresponding result file has also been updated.


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