1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SCRUM: embedde library

Minor fixes
This commit is contained in:
hf@deer.(none)
2003-09-10 12:58:26 +05:00
parent d9ef1585d1
commit fd77d78804
2 changed files with 12 additions and 6 deletions

View File

@ -72,6 +72,12 @@ emb_advanced_command(MYSQL *mysql, enum enum_server_command command,
mysql->field_count= 0;
thd->store_globals(); // Fix if more than one connect
/*
We have to call free_old_query before we start to fill mysql->fields
for new query. In the case of embedded server we collect field data
during query execution (not during data retrieval as it is in remote
client). So we have to call free_old_query here
*/
free_old_query(mysql);
result= dispatch_command(command, thd, (char *) arg, arg_length + 1);