2001-12-17 18:59:20 +01:00
|
|
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
|
|
|
|
|
|
|
|
/* Execute DO statement */
|
|
|
|
|
|
|
|
#include "mysql_priv.h"
|
|
|
|
|
2004-10-20 03:04:37 +02:00
|
|
|
bool mysql_do(THD *thd, List<Item> &values)
|
2001-12-17 18:59:20 +01:00
|
|
|
{
|
|
|
|
List_iterator<Item> li(values);
|
|
|
|
Item *value;
|
|
|
|
DBUG_ENTER("mysql_do");
|
2003-01-25 01:25:52 +01:00
|
|
|
if (setup_fields(thd, 0, 0, values, 0, 0, 0))
|
2004-10-20 03:04:37 +02:00
|
|
|
DBUG_RETURN(TRUE);
|
2001-12-17 18:59:20 +01:00
|
|
|
while ((value = li++))
|
|
|
|
value->val_int();
|
2004-11-22 11:05:10 +01:00
|
|
|
free_underlaid_joins(thd, &thd->lex->select_lex);
|
2003-10-08 10:19:09 +02:00
|
|
|
thd->clear_error(); // DO always is OK
|
2002-10-02 12:33:08 +02:00
|
|
|
send_ok(thd);
|
2004-10-20 03:04:37 +02:00
|
|
|
DBUG_RETURN(FALSE);
|
2001-12-17 18:59:20 +01:00
|
|
|
}
|