Removed duplicate open_strategy assignments
It is set in sql_yacc.yy.
This commit is contained in:
parent
a3c980b381
commit
59a7bc35fc
@ -2857,12 +2857,6 @@ case SQLCOM_PREPARE:
|
|||||||
create_info.table_charset= 0;
|
create_info.table_charset= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
For CREATE TABLE we should not open the table even if it exists.
|
|
||||||
If the table exists, we should either not create it or replace it
|
|
||||||
*/
|
|
||||||
lex->query_tables->open_strategy= TABLE_LIST::OPEN_STUB;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
If we are a slave, we should add OR REPLACE if we don't have
|
If we are a slave, we should add OR REPLACE if we don't have
|
||||||
IF EXISTS. This will help a slave to recover from
|
IF EXISTS. This will help a slave to recover from
|
||||||
@ -8225,12 +8219,6 @@ bool create_table_precheck(THD *thd, TABLE_LIST *tables,
|
|||||||
if (check_fk_parent_table_access(thd, &lex->create_info, &lex->alter_info, create_table->db))
|
if (check_fk_parent_table_access(thd, &lex->create_info, &lex->alter_info, create_table->db))
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
/*
|
|
||||||
For CREATE TABLE we should not open the table even if it exists.
|
|
||||||
If the table exists, we should either not create it or replace it
|
|
||||||
*/
|
|
||||||
lex->query_tables->open_strategy= TABLE_LIST::OPEN_STUB;
|
|
||||||
|
|
||||||
error= FALSE;
|
error= FALSE;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user