summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2013-07-08 12:57:58 +0400
committerSergey Petrunya <psergey@askmonty.org>2013-07-08 12:57:58 +0400
commit50dda403b7c04e0c769895f3f69413f0c8087792 (patch)
tree9be6c185574332b5393f5d4b604b5735d72789f6 /sql/sql_handler.cc
parent9f14736a407c402dc76235f688a7777a56a38919 (diff)
downloadmariadb-git-50dda403b7c04e0c769895f3f69413f0c8087792.tar.gz
Fix test errors like:
-Note 1031 Table storage engine for 't1' doesn't have this option +Note 1031 Table storage engine for 'InnoDB' doesn't have this option They were caused by a change in MariaDB which changed ER_ILLEGAL_HA message text to be like: "Storage engine InnoDB of the table `test`.`t1` doesn't have this option" Some the error calls were changed to pass new parameters, but some were left to be old. Also the error text in errmsg-ut8.txt was not changed.
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 03978f3a4ba..d2819360417 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -305,7 +305,8 @@ bool mysql_ha_open(THD *thd, TABLE_LIST *tables, SQL_HANDLER *reopen)
/* There can be only one table in '*tables'. */
if (! (table->file->ha_table_flags() & HA_CAN_SQL_HANDLER))
{
- my_error(ER_ILLEGAL_HA, MYF(0), tables->alias);
+ my_error(ER_ILLEGAL_HA, MYF(0), table->file->table_type(),
+ table->s->db.str, table->s->table_name.str);
goto err;
}
@@ -903,7 +904,8 @@ retry:
break;
}
default:
- my_message(ER_ILLEGAL_HA, ER(ER_ILLEGAL_HA), MYF(0));
+ my_error(ER_ILLEGAL_HA, MYF(0), table->file->table_type(),
+ table->s->db.str, table->s->table_name.str);
goto err;
}