mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
errors without code removed
net_printf/send_error calls replaced by my_error family functions -1/1 (sent/unsent) error reporting removed (WL#2133)
This commit is contained in:
@ -20,16 +20,16 @@
|
||||
#include "mysql_priv.h"
|
||||
#include "sql_acl.h"
|
||||
|
||||
int mysql_do(THD *thd, List<Item> &values)
|
||||
bool mysql_do(THD *thd, List<Item> &values)
|
||||
{
|
||||
List_iterator<Item> li(values);
|
||||
Item *value;
|
||||
DBUG_ENTER("mysql_do");
|
||||
if (setup_fields(thd, 0, 0, values, 0, 0, 0))
|
||||
DBUG_RETURN(-1);
|
||||
DBUG_RETURN(TRUE);
|
||||
while ((value = li++))
|
||||
value->val_int();
|
||||
thd->clear_error(); // DO always is OK
|
||||
send_ok(thd);
|
||||
DBUG_RETURN(0);
|
||||
DBUG_RETURN(FALSE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user