diff options
author | unknown <bell@sanja.is.com.ua> | 2005-01-24 15:56:57 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-01-24 15:56:57 +0200 |
commit | 9182786918011c6d77beee27c5deec2569f4b6c7 (patch) | |
tree | 473c8368045ad26e77e622a13539edaebced6e96 /sql/item_subselect.cc | |
parent | d514a06a86d689065590b0115799f06fa109a70b (diff) | |
download | mariadb-git-9182786918011c6d77beee27c5deec2569f4b6c7.tar.gz |
check that row elements have the same dimention that SELECT list elements in comporison between rows and subqueries added (BUG#8022)
mysql-test/r/subselect.result:
Comparison subquery and row with nested rows
mysql-test/t/subselect.test:
Comparison subquery and row with nested rows
sql/item_subselect.cc:
check that row elements have the same dimention that SELECT list elements
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r-- | sql/item_subselect.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index 2597427253c..659d67eaf37 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -995,6 +995,10 @@ Item_in_subselect::row_value_transformer(JOIN *join) List_iterator_fast<Item> li(select_lex->item_list); for (uint i= 0; i < n; i++) { + DBUG_ASSERT(left_expr->fixed && select_lex->ref_pointer_array[i]->fixed); + if (select_lex->ref_pointer_array[i]-> + check_cols(left_expr->el(i)->cols())) + goto err; Item *func= new Item_ref_null_helper(this, select_lex->ref_pointer_array+i, (char *) "<no matter>", |