mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge 10.6 into 10.7
This commit is contained in:
@ -5069,7 +5069,7 @@ mysql_rename_table(handlerton *base, const LEX_CSTRING *old_db,
|
||||
length= build_table_filename(to, sizeof(to) - 1, new_db->str,
|
||||
new_name->str, "", flags & FN_TO_IS_TMP);
|
||||
// Check if we hit FN_REFLEN bytes along with file extension.
|
||||
if (length+reg_ext_length >= FN_REFLEN)
|
||||
if (length+reg_ext_length > FN_REFLEN)
|
||||
{
|
||||
my_error(ER_IDENT_CAUSES_TOO_LONG_PATH, MYF(0), (int) sizeof(to)-1, to);
|
||||
DBUG_RETURN(TRUE);
|
||||
|
Reference in New Issue
Block a user