mirror of
https://github.com/MariaDB/server.git
synced 2025-06-13 13:01:51 +03:00
Fixed bug in GROUP BY ... DESC
Docs/manual.texi: Changelog libmysql/libmysql.c: Fixed bug with mysql_use_result() when mysql_query() is called before mysql_free_result(). mysql-test/r/group_by.result: New tests mysql-test/t/group_by.test: New tests sql/stacktrace.c: Fix for SCO
This commit is contained in:
@ -1955,6 +1955,8 @@ mysql_fetch_row(MYSQL_RES *res)
|
||||
DBUG_PRINT("info",("end of data"));
|
||||
res->eof=1;
|
||||
res->handle->status=MYSQL_STATUS_READY;
|
||||
/* Don't clear handle in mysql_free_results */
|
||||
res->handle=0;
|
||||
}
|
||||
}
|
||||
DBUG_RETURN((MYSQL_ROW) NULL);
|
||||
|
Reference in New Issue
Block a user