1
0
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:
Mohanad
2025-02-28 14:43:20 +02:00
committed by Sergei Golubchik
parent 05813f54cf
commit ddd5ba3a00
2 changed files with 2 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ create table myUC (i int);
select TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES
where TABLE_SCHEMA ='mysqltest_LC2';
TABLE_SCHEMA TABLE_NAME
mysqltest_lc2 myUC
mysqltest_LC2 myUC
use test;
drop database mysqltest_LC2;
#

View File

@@ -4348,7 +4348,7 @@ bool get_lookup_field_values(THD *thd, COND *cond, bool fix_table_name_case,
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