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
f6209be0
Commit
f6209be0
authored
Dec 06, 2004
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New fix for bug#6796 Wrong outcome of update operation of ndb table
parent
75da2fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sql/sql_update.cc
sql/sql_update.cc
+2
-3
No files found.
sql/sql_update.cc
View file @
f6209be0
...
@@ -110,8 +110,7 @@ int mysql_update(THD *thd,
...
@@ -110,8 +110,7 @@ int mysql_update(THD *thd,
#ifndef NO_EMBEDDED_ACCESS_CHECKS
#ifndef NO_EMBEDDED_ACCESS_CHECKS
table
->
grant
.
want_privilege
=
want_privilege
;
table
->
grant
.
want_privilege
=
want_privilege
;
#endif
#endif
if
(
setup_fields
(
thd
,
0
,
update_table_list
,
fields
,
1
,
0
,
0
)
||
if
(
setup_fields
(
thd
,
0
,
update_table_list
,
fields
,
1
,
0
,
0
))
setup_fields
(
thd
,
0
,
update_table_list
,
values
,
1
,
0
,
0
))
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
if
(
table
->
timestamp_field
)
if
(
table
->
timestamp_field
)
{
{
...
@@ -126,7 +125,7 @@ int mysql_update(THD *thd,
...
@@ -126,7 +125,7 @@ int mysql_update(THD *thd,
/* Check values */
/* Check values */
table
->
grant
.
want_privilege
=
(
SELECT_ACL
&
~
table
->
grant
.
privilege
);
table
->
grant
.
want_privilege
=
(
SELECT_ACL
&
~
table
->
grant
.
privilege
);
#endif
#endif
if
(
setup_fields
(
thd
,
0
,
update_table_list
,
values
,
0
,
0
,
0
))
if
(
setup_fields
(
thd
,
0
,
update_table_list
,
values
,
1
,
0
,
0
))
{
{
free_underlaid_joins
(
thd
,
&
thd
->
lex
->
select_lex
);
free_underlaid_joins
(
thd
,
&
thd
->
lex
->
select_lex
);
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
...
...
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