Commit 5a38621c authored by Sinisa@sinisa.nasamreza.org's avatar Sinisa@sinisa.nasamreza.org

Merge sinisa@work.mysql.com:/home/bk/mysql-4.1

into sinisa.nasamreza.org:/mnt/work/mysql-4.1
parents 687e933d 72d3103d
...@@ -129,8 +129,6 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t) ...@@ -129,8 +129,6 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t)
free_tmp_table(thd,table); free_tmp_table(thd,table);
exit: exit:
close_thread_tables(thd); close_thread_tables(thd);
if (res > 0)
send_error(thd, ER_UNKNOWN_COM_ERROR); // temporary only ...
} }
DBUG_RETURN(res); DBUG_RETURN(res);
} }
...@@ -1344,7 +1344,7 @@ mysql_execute_command(THD *thd) ...@@ -1344,7 +1344,7 @@ mysql_execute_command(THD *thd)
cursor->derived, cursor->derived,
cursor))) cursor)))
{ {
if (res < 0) if (res < 0 || thd->net.report_error)
send_error(thd,thd->killed ? ER_SERVER_SHUTDOWN : 0); send_error(thd,thd->killed ? ER_SERVER_SHUTDOWN : 0);
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
} }
......
...@@ -78,8 +78,14 @@ bool select_union::send_data(List<Item> &values) ...@@ -78,8 +78,14 @@ bool select_union::send_data(List<Item> &values)
fill_record(table->field,values); fill_record(table->field,values);
if ((write_record(table,&info))) if ((write_record(table,&info)))
{ {
if (thd->net.last_errno == ER_RECORD_FILE_FULL)
{
thd->clear_error(); // do not report user about table overflow
if (create_myisam_from_heap(table, tmp_table_param, info.last_errno, 0)) if (create_myisam_from_heap(table, tmp_table_param, info.last_errno, 0))
return 1; return 1;
}
else
return 1;
thd->net.report_error=0; // donno why does it work, but it does ... thd->net.report_error=0; // donno why does it work, but it does ...
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment