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:
@ -2416,6 +2416,12 @@ create table if not exists t1 (a int, b int) select 2,2;
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
create table if not exists t1 like t2;
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
create table t1 (a int, b int);
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
create table t1 (a int, b int) select 2,2;
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
create table t1 like t2;
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
select * from t1;
|
||||
a b
|
||||
1 1
|
||||
|
Reference in New Issue
Block a user