Bug#31210: INSERT DELAYED crashes server when used on partitioned tables

post push patch

push build found tree failing test when using:
--ps-protocol --mysqld=--binlog-format=row
Changed to the new error message.

sql/sql_prepare.cc:
  Bug#31210: INSERT DELAYED crashes server when used on partitioned tables
  
  Changed to the newly added error message
This commit is contained in:
Mattias Jonsson 2008-06-09 14:39:20 +02:00
parent 41c80004ff
commit 58f30a5886

View File

@ -1154,7 +1154,7 @@ static bool mysql_test_insert(Prepared_statement *stmt,
if (table_list->lock_type == TL_WRITE_DELAYED && if (table_list->lock_type == TL_WRITE_DELAYED &&
!(table_list->table->file->ha_table_flags() & HA_CAN_INSERT_DELAYED)) !(table_list->table->file->ha_table_flags() & HA_CAN_INSERT_DELAYED))
{ {
my_error(ER_ILLEGAL_HA, MYF(0), (table_list->view ? my_error(ER_DELAYED_NOT_SUPPORTED, MYF(0), (table_list->view ?
table_list->view_name.str : table_list->view_name.str :
table_list->table_name)); table_list->table_name));
goto error; goto error;