Commit d55b2bd1 authored by malff@omega.weblab's avatar malff@omega.weblab

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

into  omega.weblab:/home/malff/TREE/mysql-5.1-rt-merge
parents 0a10782f e235ccd1
......@@ -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);
......
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