diff options
author | cmiller@zippy.cornsilk.net <> | 2007-11-07 13:25:20 -0500 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2007-11-07 13:25:20 -0500 |
commit | 1604cdb30deb1167f4a9ac0ae34ec171f6c6497f (patch) | |
tree | 4d1fff7efb5c0a6a068b26db4aec58c3c745c9eb /sql/item_func.cc | |
parent | 3cf16df04f9950726a3bfaa903db9cc4bedad6ff (diff) | |
parent | af22cc408c7ae0471912fd48c9e7012a73fda68b (diff) | |
download | mariadb-git-1604cdb30deb1167f4a9ac0ae34ec171f6c6497f.tar.gz |
Merge mysqldev@production.mysql.com:/data0/mysqldev/my/mysql-5.0-release
into zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-community
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index df3d04c106f..f9331093495 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -5583,8 +5583,13 @@ Item_func_sp::fix_fields(THD *thd, Item **ref) #endif /* ! NO_EMBEDDED_ACCESS_CHECKS */ } + if (!m_sp->m_chistics->detistic) - used_tables_cache |= RAND_TABLE_BIT; + { + used_tables_cache |= RAND_TABLE_BIT; + const_item_cache= FALSE; + } + DBUG_RETURN(res); } @@ -5592,6 +5597,10 @@ Item_func_sp::fix_fields(THD *thd, Item **ref) void Item_func_sp::update_used_tables() { Item_func::update_used_tables(); + if (!m_sp->m_chistics->detistic) - used_tables_cache |= RAND_TABLE_BIT; + { + used_tables_cache |= RAND_TABLE_BIT; + const_item_cache= FALSE; + } } |