mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-14432 mysqldump does not preserve case of table names in generated sql
inside the get_lookup_field_values when lower_case_table_names's value is 2 this should reserve the case for the table's and database's names so this commit changes the condition to lowercase only when the lower_case_table_name's value is 1 not just 1 and 2 "any value not equal 0"
This commit is contained in:
committed by
Sergei Golubchik
parent
05813f54cf
commit
ddd5ba3a00
@@ -185,7 +185,7 @@ create table myUC (i int);
|
|||||||
select TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES
|
select TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES
|
||||||
where TABLE_SCHEMA ='mysqltest_LC2';
|
where TABLE_SCHEMA ='mysqltest_LC2';
|
||||||
TABLE_SCHEMA TABLE_NAME
|
TABLE_SCHEMA TABLE_NAME
|
||||||
mysqltest_lc2 myUC
|
mysqltest_LC2 myUC
|
||||||
use test;
|
use test;
|
||||||
drop database mysqltest_LC2;
|
drop database mysqltest_LC2;
|
||||||
#
|
#
|
||||||
|
@@ -4348,7 +4348,7 @@ bool get_lookup_field_values(THD *thd, COND *cond, bool fix_table_name_case,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lower_case_table_names && !rc)
|
if (lower_case_table_names == 1 && !rc)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
We can safely do in-place upgrades here since all of the above cases
|
We can safely do in-place upgrades here since all of the above cases
|
||||||
|
Reference in New Issue
Block a user