1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Changes for the furtherment of UNIONS

This commit is contained in:
unknown
2001-07-19 13:31:54 +03:00
parent e0d818f3ab
commit cccb3aaf70
4 changed files with 106 additions and 76 deletions

View File

@@ -1318,7 +1318,8 @@ bool select_insert::send_eof()
thd->cuted_fields);
if (last_insert_id)
thd->insert_id(last_insert_id); // For update log
::send_ok(&thd->net,info.copied,last_insert_id,buff);
if (!unions)
::send_ok(&thd->net,info.copied,last_insert_id,buff);
mysql_update_log.write(thd,thd->query,thd->query_length);
if (mysql_bin_log.is_open())
{
@@ -1400,7 +1401,9 @@ bool select_create::send_eof()
mysql_unlock_tables(thd, lock);
if (!table->tmp_table)
hash_delete(&open_cache,(byte*) table);
lock=0; table=0;
lock=0;
if (!unions)
table=0;
VOID(pthread_mutex_unlock(&LOCK_open));
}
return tmp;