Merge omega.weblab:/home/malff/TREE/mysql-5.1-base

into  omega.weblab:/home/malff/TREE/mysql-5.1-rt-merge
This commit is contained in:
malff@omega.weblab 2007-09-05 14:52:40 -06:00
commit d55b2bd13b

View file

@ -1673,6 +1673,7 @@ static int
run_statements(MYSQL *mysql, statement *stmt)
{
statement *ptr;
MYSQL_RES *result;
DBUG_ENTER("run_statements");
for (ptr= stmt; ptr && ptr->length; ptr= ptr->next)
@ -1683,6 +1684,11 @@ run_statements(MYSQL *mysql, statement *stmt)
my_progname, (uint)ptr->length, ptr->string, mysql_error(mysql));
exit(1);
}
if (mysql_field_count(mysql))
{
result= mysql_store_result(mysql);
mysql_free_result(result);
}
}
DBUG_RETURN(0);