summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorMattias Jonsson <mattiasj@mysql.com>2008-06-09 14:39:20 +0200
committerMattias Jonsson <mattiasj@mysql.com>2008-06-09 14:39:20 +0200
commit58f30a5886c117c9123986a3452364422ef395dd (patch)
tree0ce95b0a92db3bc530406a12742bfb78e9b3058d /sql/sql_prepare.cc
parent41c80004ff55d46332fe5825a0357766f12537fd (diff)
downloadmariadb-git-58f30a5886c117c9123986a3452364422ef395dd.tar.gz
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
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index ca72d1c1613..73ab28a233c 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -1154,9 +1154,9 @@ static bool mysql_test_insert(Prepared_statement *stmt,
if (table_list->lock_type == TL_WRITE_DELAYED &&
!(table_list->table->file->ha_table_flags() & HA_CAN_INSERT_DELAYED))
{
- my_error(ER_ILLEGAL_HA, MYF(0), (table_list->view ?
- table_list->view_name.str :
- table_list->table_name));
+ my_error(ER_DELAYED_NOT_SUPPORTED, MYF(0), (table_list->view ?
+ table_list->view_name.str :
+ table_list->table_name));
goto error;
}
while ((values= its++))