diff options
author | unknown <joreland@mysql.com> | 2005-01-20 10:13:45 +0100 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-01-20 10:13:45 +0100 |
commit | e52c48bb7d44b86d57c2b0f8feae732db69b813d (patch) | |
tree | 07a38a097677740edff3f8b5f182bc218e86690c /sql | |
parent | 9226d1408cf019c30cf449e7e8ef52cf3d33d678 (diff) | |
parent | 9ff491503ed5dded8ab416480492a8f1722ea930 (diff) | |
download | mariadb-git-e52c48bb7d44b86d57c2b0f8feae732db69b813d.tar.gz |
Merge mysql.com:/home/jonas/src/mysql-5.0
into mysql.com:/home/jonas/src/mysql-5.0-ndb
Diffstat (limited to 'sql')
-rw-r--r-- | sql/item_cmpfunc.h | 1 | ||||
-rw-r--r-- | sql/item_subselect.cc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index a6fe9e44a3d..a156322e13c 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -264,6 +264,7 @@ public: longlong val_int() { return *trig_var ? args[0]->val_int() : 1; } enum Functype functype() const { return TRIG_COND_FUNC; }; const char *func_name() const { return "trigcond"; }; + bool const_item() const { return FALSE; } }; class Item_func_not_all :public Item_func_not diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index 2d4f88ed57b..d6d58adaf7c 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -177,6 +177,8 @@ bool Item_subselect::fix_fields(THD *thd_param, TABLE_LIST *tables, Item **ref) } fix_length_and_dec(); } + else + return 1; uint8 uncacheable= engine->uncacheable(); if (uncacheable) { @@ -264,7 +266,6 @@ Item_singlerow_subselect::Item_singlerow_subselect(st_select_lex *select_lex) { DBUG_ENTER("Item_singlerow_subselect::Item_singlerow_subselect"); init(select_lex, new select_singlerow_subselect(this)); - max_columns= 1; maybe_null= 1; max_columns= UINT_MAX; DBUG_VOID_RETURN; |