Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
59a7bc35
Commit
59a7bc35
authored
Oct 26, 2016
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed duplicate open_strategy assignments
It is set in sql_yacc.yy.
parent
a3c980b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
sql/sql_parse.cc
sql/sql_parse.cc
+0
-12
No files found.
sql/sql_parse.cc
View file @
59a7bc35
...
...
@@ -2857,12 +2857,6 @@ case SQLCOM_PREPARE:
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 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
))
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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment