summaryrefslogtreecommitdiff
path: root/sql/sql_tvc.cc
diff options
context:
space:
mode:
authorGalina Shalygina <galashalygina@gmail.com>2017-08-29 16:58:32 +0200
committerGalina Shalygina <galashalygina@gmail.com>2017-08-29 16:58:32 +0200
commit91149bbd82c1c8a1c741893a4b54e8c305ce4ebd (patch)
tree87bc4edafb8c9e771d9dc7e9943734fb455a705c /sql/sql_tvc.cc
parent570d2e7d0f2c48f9662804eb69e47ce12f983696 (diff)
downloadmariadb-git-91149bbd82c1c8a1c741893a4b54e8c305ce4ebd.tar.gz
Mistakes corrected, new error messages added
Diffstat (limited to 'sql/sql_tvc.cc')
-rw-r--r--sql/sql_tvc.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/sql_tvc.cc b/sql/sql_tvc.cc
index e9476254f9e..28d748877fd 100644
--- a/sql/sql_tvc.cc
+++ b/sql/sql_tvc.cc
@@ -46,13 +46,20 @@ bool join_type_handlers_for_tvc(THD *thd_arg, List_iterator_fast<List_item> &li,
if (first_list_el_count != lst->elements)
{
- my_message(ER_WRONG_NUMBER_OF_COLUMNS_IN_TABLE_VALUE_CONSTRUCTOR,
- ER_THD(thd_arg, ER_WRONG_NUMBER_OF_COLUMNS_IN_TABLE_VALUE_CONSTRUCTOR),
+ my_message(ER_WRONG_NUMBER_OF_VALUES_IN_TVC,
+ ER_THD(thd_arg, ER_WRONG_NUMBER_OF_VALUES_IN_TVC),
MYF(0));
DBUG_RETURN(true);
}
for (uint pos= 0; (item=it++); pos++)
{
+ if (item->type() == Item::FIELD_ITEM)
+ {
+ my_error(ER_UNKNOWN_VALUE_IN_TVC, MYF(0),
+ ((Item_field *)item)->full_name(),
+ MYF(0));
+ DBUG_RETURN(true);
+ }
const Type_handler *item_type_handler= item->real_type_handler();
if (first)
holders[pos].set_handler(item_type_handler);