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
0b01f9ef
Commit
0b01f9ef
authored
Jan 22, 2020
by
Will DeVries
Committed by
Sergei Petrunia
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix direct_update error handling.
parent
14c34d96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
storage/clustrixdb/clustrix_connection.cc
storage/clustrixdb/clustrix_connection.cc
+4
-5
storage/clustrixdb/ha_clustrixdb.cc
storage/clustrixdb/ha_clustrixdb.cc
+1
-4
No files found.
storage/clustrixdb/clustrix_connection.cc
View file @
0b01f9ef
...
@@ -731,13 +731,12 @@ int clustrix_connection::update_query(String &stmt, LEX_CSTRING &dbname,
...
@@ -731,13 +731,12 @@ int clustrix_connection::update_query(String &stmt, LEX_CSTRING &dbname,
if
((
error_code
=
send_command
()))
if
((
error_code
=
send_command
()))
return
error_code
;
return
error_code
;
if
((
error_code
=
read_query_response
()))
error_code
=
read_query_response
();
return
error_code
;
auto_commit_closed
();
auto_commit_closed
();
*
affected_rows
=
clustrix_net
.
affected_rows
;
if
(
!
error_code
)
*
affected_rows
=
clustrix_net
.
affected_rows
;
return
0
;
return
error_code
;
}
}
...
...
storage/clustrixdb/ha_clustrixdb.cc
View file @
0b01f9ef
...
@@ -573,10 +573,7 @@ int ha_clustrixdb::direct_update_rows(ha_rows *update_rows)
...
@@ -573,10 +573,7 @@ int ha_clustrixdb::direct_update_rows(ha_rows *update_rows)
if
(
!
thd_test_options
(
thd
,
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
))
if
(
!
thd_test_options
(
thd
,
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
))
trx
->
auto_commit_next
();
trx
->
auto_commit_next
();
trx
->
update_query
(
update_stmt
,
table
->
s
->
db
,
update_rows
);
error_code
=
trx
->
update_query
(
update_stmt
,
table
->
s
->
db
,
update_rows
);
thd
->
get_stmt_da
()
->
set_overwrite_status
(
true
);
DBUG_RETURN
(
error_code
);
DBUG_RETURN
(
error_code
);
}
}
...
...
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