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
f08af138
Commit
f08af138
authored
Jul 22, 2004
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic fix
parent
217bd8b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+3
-3
No files found.
sql/ha_ndbcluster.cc
View file @
f08af138
...
...
@@ -1236,19 +1236,19 @@ int ha_ndbcluster::update_row(const byte *old_data, byte *new_data)
DBUG_PRINT
(
"info"
,
(
"primary key update, doing pk read+insert+delete"
));
// Get all old fields, since we optimize away fields not in query
int
read_res
=
complemented_pk_read
(
old_data
,
new_data
);
int
read_res
=
complemented_pk_read
(
old_data
,
new_data
);
if
(
read_res
)
{
DBUG_PRINT
(
"info"
,
(
"pk read failed"
));
DBUG_RETURN
(
read_res
);
}
// Insert new row
int
insert_res
=
write_row
(
new_data
);
int
insert_res
=
write_row
(
new_data
);
if
(
!
insert_res
)
{
// Delete old row
DBUG_PRINT
(
"info"
,
(
"insert succeded"
));
int
delete_res
=
delete_row
(
old_data
);
int
delete_res
=
delete_row
(
old_data
);
if
(
!
delete_res
)
{
DBUG_PRINT
(
"info"
,
(
"insert+delete succeeded"
));
...
...
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