diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2016-10-26 14:09:11 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-10-26 14:12:02 +0400 |
commit | 59a7bc35fc6526568e49f1087c022c5d01da088a (patch) | |
tree | 6ac4c39c12867b769ca2c938963d3122a2a8a99a /sql/sql_parse.cc | |
parent | a3c980b381ead0ea13df8314258c7a8d11fe5cd1 (diff) | |
download | mariadb-git-59a7bc35fc6526568e49f1087c022c5d01da088a.tar.gz |
Removed duplicate open_strategy assignments
It is set in sql_yacc.yy.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index cbf723c1b49..70511fcd849 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2858,12 +2858,6 @@ case SQLCOM_PREPARE: } /* - 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 EXISTS. This will help a slave to recover from CREATE TABLE OR EXISTS failures by dropping the table and @@ -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)) 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; err: |