1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fixed bug in error handling of CREATE ... SELECT

More tests cases
After merge fixes
This commit is contained in:
monty@narttu.mysql.fi
2003-10-08 18:53:31 +03:00
parent 246febee42
commit 9e57c12b5a
15 changed files with 121 additions and 55 deletions

View File

@ -1440,8 +1440,17 @@ void select_insert::send_error(uint errcode,const char *err)
{
DBUG_ENTER("select_insert::send_error");
//TODO error should be sent at the query processing end
/* TODO error should be sent at the query processing end */
::send_error(thd,errcode,err);
if (!table)
{
/*
This can only happen when using CREATE ... SELECT and the table was not
created becasue of an syntax error
*/
DBUG_VOID_RETURN;
}
table->file->extra(HA_EXTRA_NO_CACHE);
table->file->activate_all_index(thd);
/*