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
0b5dc626
Commit
0b5dc626
authored
Jun 12, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more mysql_create_view link/unlink woes
parent
fb70eb77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/sql_view.cc
sql/sql_view.cc
+3
-3
No files found.
sql/sql_view.cc
View file @
0b5dc626
...
@@ -432,7 +432,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
...
@@ -432,7 +432,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
if
(
check_dependencies_in_with_clauses
(
lex
->
with_clauses_list
))
if
(
check_dependencies_in_with_clauses
(
lex
->
with_clauses_list
))
{
{
res
=
TRUE
;
res
=
TRUE
;
goto
err
;
goto
err
_no_relink
;
}
}
WSREP_TO_ISOLATION_BEGIN
(
WSREP_MYSQL_DB
,
NULL
,
NULL
);
WSREP_TO_ISOLATION_BEGIN
(
WSREP_MYSQL_DB
,
NULL
,
NULL
);
...
@@ -449,9 +449,8 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
...
@@ -449,9 +449,8 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
if
(
thd
->
open_temporary_tables
(
lex
->
query_tables
)
||
if
(
thd
->
open_temporary_tables
(
lex
->
query_tables
)
||
open_and_lock_tables
(
thd
,
lex
->
query_tables
,
TRUE
,
0
))
open_and_lock_tables
(
thd
,
lex
->
query_tables
,
TRUE
,
0
))
{
{
view
=
lex
->
unlink_first_table
(
&
link_to_local
);
res
=
TRUE
;
res
=
TRUE
;
goto
err
;
goto
err
_no_relink
;
}
}
#ifdef WITH_WSREP
#ifdef WITH_WSREP
...
@@ -723,6 +722,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
...
@@ -723,6 +722,7 @@ bool mysql_create_view(THD *thd, TABLE_LIST *views,
#ifdef WITH_WSREP
#ifdef WITH_WSREP
wsrep_error_label:
wsrep_error_label:
res
=
true
;
res
=
true
;
goto
err_no_relink
;
#endif
#endif
err:
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