mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Removed lock wait timeout warning when using CREATE TABLE IF EXISTS
mysql-test/r/create.result: Added test case to show that CREATE TABLE also is not waiting if table exists. mysql-test/t/create.test: Added test case to show that CREATE TABLE also is not waiting if table exists. sql/sql_base.cc: Clear also warnings from acquire_locks if we retry.
This commit is contained in:
@ -4779,6 +4779,7 @@ lock_table_names(THD *thd,
|
||||
*/
|
||||
if (check_if_table_exists(thd, tables_start, 1, &exists))
|
||||
DBUG_RETURN(TRUE); // Should never happen
|
||||
thd->warning_info->clear_warning_info(thd->query_id);
|
||||
thd->clear_error(); // Forget timeout error
|
||||
if (exists)
|
||||
{
|
||||
|
Reference in New Issue
Block a user