Commit a92ade65 authored by unknown's avatar unknown

SCRUM

WL604 Privilegies in embedded library
another bug fixed


sql/sql_parse.cc:
  flag selection fixed
parent 2986975d
......@@ -2415,6 +2415,8 @@ mysql_execute_command(THD *thd)
if (single_table_command_access(thd, privilege, tables, &res))
goto error;
#else
my_bool update=(lex->value_list.elements ? 1 : 0);
#endif
if (select_lex->item_list.elements != lex->value_list.elements)
{
......@@ -2423,12 +2425,7 @@ mysql_execute_command(THD *thd)
}
res = mysql_insert(thd,tables,lex->field_list,lex->many_values,
select_lex->item_list, lex->value_list,
#ifndef NO_EMBEDDED_ACCESS_CHECKS
(update ? DUP_UPDATE : lex->duplicates)
#else
DUP_UPDATE
#endif
);
(update ? DUP_UPDATE : lex->duplicates));
if (thd->net.report_error)
res= -1;
break;
......
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