1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

cleanup: lex_string_set3()

This commit is contained in:
Sergei Golubchik
2024-01-27 09:31:44 +01:00
parent 32e6f8ff2e
commit ae59127158
9 changed files with 21 additions and 34 deletions

View File

@@ -4711,7 +4711,6 @@ int mysql_create_table_no_lock(THD *thd,
int res;
uint path_length;
char path[FN_REFLEN + 1];
LEX_CSTRING cpath;
const Lex_ident_db *db= &table_list->db;
const Lex_ident_table *table_name= &table_list->table_name;
LEX_CUSTRING frm= {0,0};
@@ -4734,8 +4733,8 @@ int mysql_create_table_no_lock(THD *thd,
return true;
}
}
lex_string_set3(&cpath, path, path_length);
LEX_CSTRING cpath= { path, path_length };
res= create_table_impl(thd, ddl_log_state_create, ddl_log_state_rm, *db,
*table_name, *db, *table_name, cpath, *create_info,
create_info, alter_info, create_table_mode,