1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-11 05:52:26 +03:00

Fixed handling of lower_case_table_names in SHOW TABLE STATUS, mysql_list_fields() and mysql_table_dump().

This fixes some Errcode 13 errors on Windows when deleting tables.
This commit is contained in:
monty@mashka.mysql.fi
2003-01-29 18:56:34 +02:00
parent 710ffb2d89
commit d88eb71f34
6 changed files with 35 additions and 22 deletions

View File

@@ -1045,9 +1045,29 @@ char *get_field(MEM_ROOT *mem, TABLE *table, uint fieldnr)
return to;
}
bool check_db_name(const char *name)
/*
Check if database name is valid
SYNPOSIS
check_db_name()
name Name of database
NOTES
If lower_case_table_names is set then database is converted to lower case
RETURN
0 ok
1 error
*/
bool check_db_name(char *name)
{
const char *start=name;
char *start=name;
if (lower_case_table_names)
casedn_str(name);
while (*name)
{
#if defined(USE_MB) && defined(USE_MB_IDENT)