mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Some small portability fixes.
Added support for lower_case_table_names=2, which is to be used on case insensitive file systems. This tells MySQL to preserve the used case of filenames and database names to make it esier to move files between cases sensitive can case insensitive file systems (like Windows and Linux)
This commit is contained in:
@@ -865,7 +865,9 @@ store_create_info(THD *thd, TABLE *table, String *packet)
|
||||
packet->append("CREATE TEMPORARY TABLE ", 23);
|
||||
else
|
||||
packet->append("CREATE TABLE ", 13);
|
||||
append_identifier(thd,packet,table->real_name);
|
||||
append_identifier(thd,packet,
|
||||
(lower_case_table_names == 2 ? table->table_name :
|
||||
table->real_name));
|
||||
packet->append(" (\n", 3);
|
||||
|
||||
for (ptr=table->field ; (field= *ptr); ptr++)
|
||||
|
||||
Reference in New Issue
Block a user