mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
merge with 3.23.42
This commit is contained in:
@@ -359,7 +359,9 @@ bool mysql_change_db(THD *thd,const char *name)
|
||||
}
|
||||
|
||||
(void) sprintf(path,"%s/%s",mysql_data_home,dbname);
|
||||
unpack_dirname(path,path); // Convert if not unix
|
||||
length=unpack_dirname(path,path); // Convert if not unix
|
||||
if (length && path[length-1] == FN_LIBCHAR)
|
||||
path[length-1]=0; // remove ending '\'
|
||||
if (access(path,F_OK))
|
||||
{
|
||||
net_printf(&thd->net,ER_BAD_DB_ERROR,dbname);
|
||||
|
||||
Reference in New Issue
Block a user