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

Post-merge fixes (adapting new SP code to 4.1 changes).

This commit is contained in:
pem@mysql.com
2003-02-18 19:58:03 +01:00
parent 97dc6a528e
commit 02211a600b
4 changed files with 18 additions and 5 deletions

View File

@ -1043,6 +1043,15 @@ bool select_dumpvar::send_data(List<Item> &items)
bool select_dumpvar::send_eof()
{
/* This mimics select_send::send_eof(), which unlocks this way.
* It appears to be necessary, since tables aren't unlock after
* selects otherwise.
*/
if (thd->lock)
{
mysql_unlock_tables(thd, thd->lock);
thd->lock=0;
}
if (row_count)
{
::send_ok(thd,row_count);