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
958ad5a8
Commit
958ad5a8
authored
Nov 08, 2017
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MW-388 Fix conflict handling of SPs with DECLARE ... HANDLER
Adapt to MariaDB case
parent
76f1195f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/sql_parse.cc
sql/sql_parse.cc
+2
-2
No files found.
sql/sql_parse.cc
View file @
958ad5a8
...
@@ -5621,7 +5621,7 @@ case SQLCOM_PREPARE:
...
@@ -5621,7 +5621,7 @@ case SQLCOM_PREPARE:
if
(
thd
->
is_error
()
||
(
thd
->
variables
.
option_bits
&
OPTION_MASTER_SQL_ERROR
))
if
(
thd
->
is_error
()
||
(
thd
->
variables
.
option_bits
&
OPTION_MASTER_SQL_ERROR
))
trans_rollback_stmt
(
thd
);
trans_rollback_stmt
(
thd
);
#ifdef WITH_WSREP
#ifdef WITH_WSREP
else
if
(
thd
->
sp
_runtime_ctx
&&
else
if
(
thd
->
sp
cont
&&
!
thd
->
is_error
()
&&
!
thd
->
is_error
()
&&
!
thd
->
in_multi_stmt_transaction_mode
()
&&
!
thd
->
in_multi_stmt_transaction_mode
()
&&
(
thd
->
wsrep_conflict_state
==
MUST_ABORT
||
(
thd
->
wsrep_conflict_state
==
MUST_ABORT
||
...
@@ -5637,7 +5637,7 @@ case SQLCOM_PREPARE:
...
@@ -5637,7 +5637,7 @@ case SQLCOM_PREPARE:
*/
*/
trans_rollback_stmt
(
thd
);
trans_rollback_stmt
(
thd
);
thd
->
wsrep_conflict_state
=
NO_CONFLICT
;
thd
->
wsrep_conflict_state
=
NO_CONFLICT
;
thd
->
killed
=
THD
::
NOT_KILLED
;
thd
->
killed
=
NOT_KILLED
;
}
}
#endif
/* WITH_WSREP */
#endif
/* WITH_WSREP */
else
else
...
...
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