summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-03-16 20:19:36 +0200
committerunknown <bell@sanja.is.com.ua>2004-03-16 20:19:36 +0200
commit71c61a9ebe49bda9812774ae5e03eeec8621b236 (patch)
tree6e954db823df900691a00fd3e9d8de7194309d6f /sql/item_func.cc
parent1e2761e2868a28595313bba901b277ef8fa189e9 (diff)
downloadmariadb-git-71c61a9ebe49bda9812774ae5e03eeec8621b236.tar.gz
after review & some other fixes
mysql-test/r/subselect.result: after merge fix sql/item_func.cc: fixed used_tables_cache sql/item_func.h: fixed used_tables_cache sql/sql_select.cc: removed != and !
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index 276dbfe1956..ae7a53951b1 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -959,7 +959,6 @@ double Item_func_round::val()
return tmp2;
}
-
void Item_func_rand::fix_length_and_dec()
{
decimals=NOT_FIXED_DEC;
@@ -990,6 +989,12 @@ void Item_func_rand::fix_length_and_dec()
}
}
+void Item_func_rand::update_used_tables()
+{
+ Item_real_func::update_used_tables();
+ used_tables_cache|= RAND_TABLE_BIT;
+}
+
double Item_func_rand::val()
{