diff options
author | monty@donna.mysql.com <> | 2001-02-03 18:00:29 +0200 |
---|---|---|
committer | monty@donna.mysql.com <> | 2001-02-03 18:00:29 +0200 |
commit | 728b63e0de8b992e29b00cc100e183e6f9011643 (patch) | |
tree | b01406ccbcbde61bdde5e643977c7f0fa76dc098 /sql/item_func.h | |
parent | cffc2849f945a8c2e5e775a270d6f35c572ed443 (diff) | |
download | mariadb-git-728b63e0de8b992e29b00cc100e183e6f9011643.tar.gz |
Workaround for bug in thread library in Unixware 7
Fixed bug in GROUP BY on ELT()
Added SEQUENCE() to UDF examples
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index 5810307e81c..71eab66270e 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -520,11 +520,17 @@ public: void update_used_tables() { item->update_used_tables() ; Item_func::update_used_tables(); - used_tables_cache|=item->used_tables(); + used_tables_cache|= item->used_tables(); + const_item_cache&= item->const_item(); } const char *func_name() const { return "field"; } void fix_length_and_dec() - { maybe_null=0; max_length=2; used_tables_cache|=item->used_tables();} + { + maybe_null=0; max_length=3; + used_tables_cache|= item->used_tables(); + const_item_cache&= item->const_item(); + with_sum_func= with_sum_func || item->with_sum_func; + } }; |