diff options
author | unknown <bell@sanja.is.com.ua> | 2002-10-08 14:50:12 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-10-08 14:50:12 +0300 |
commit | e8e3f7728fbe66f75b328a56a48059552b0bea15 (patch) | |
tree | 30b02ef49b175b51e61fdc08f11239b5bd0a0fa4 /sql/item_subselect.cc | |
parent | 956c993f64ca673bb8085d21164e22d110aea3c3 (diff) | |
download | mariadb-git-e8e3f7728fbe66f75b328a56a48059552b0bea15.tar.gz |
fixed couple of bugs in field/reference name resolution
fixed error handling in subselect fix_field
mysql-test/r/subselect.result:
test of name resolution
mysql-test/t/subselect.test:
test of name resolution
sql/item.cc:
fixed couple of bugs in field/reference name resolution.
sql/item_subselect.cc:
fixed error handling
sql/mysql_priv.h:
fixed couple of bugs in field/reference name resolution.
sql/sql_base.cc:
fixed couple of bugs in field/reference name resolution.
sql/sql_select.cc:
new find_item_in_list interface
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r-- | sql/item_subselect.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index 7e0b2e201ec..e8ee6a780ea 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -83,7 +83,8 @@ bool Item_subselect::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref) return 1; } int res= engine->prepare(); - fix_length_and_dec(); + if (!res) + fix_length_and_dec(); return res; } |