Commit 04866cf0 authored by unknown's avatar unknown

New fix for bug#6796 Wrong outcome of update operation of ndb table

parent 3af775df
...@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment