summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorgkodinov/kgeorge@rakia.gmz <>2006-11-28 15:47:53 +0200
committergkodinov/kgeorge@rakia.gmz <>2006-11-28 15:47:53 +0200
commitfb41ec6f221bb05ae2e5a3ad60665242c696d496 (patch)
tree3d1a267fd6979baf82fe7be97b67888c56e85298 /sql/item_func.h
parent0421d489fbcdd1b9f3286f1981b7b3a275597b50 (diff)
parent42cd956752be97efe01ed83825e5b320b98d56a3 (diff)
downloadmariadb-git-fb41ec6f221bb05ae2e5a3ad60665242c696d496.tar.gz
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into rakia.gmz:/home/kgeorge/mysql/autopush/B11927-5.0-opt
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 9d94bc85d2c..ca835177f18 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -157,7 +157,7 @@ public:
return (null_value=args[0]->get_time(ltime));
}
bool is_null() {
- (void) val_int(); /* Discard result. It sets null_value as side-effect. */
+ update_null_value();
return null_value;
}
void signal_divide_by_null();
@@ -241,7 +241,7 @@ public:
virtual double real_op()= 0;
virtual my_decimal *decimal_op(my_decimal *)= 0;
virtual String *str_op(String *)= 0;
- bool is_null() { (void) val_real(); return null_value; }
+ bool is_null() { update_null_value(); return null_value; }
};
/* function where type of result detected by first argument */