summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authormonty@tik.mysql.fi <>2002-03-02 09:51:24 +0200
committermonty@tik.mysql.fi <>2002-03-02 09:51:24 +0200
commit9d9bcf25e7d6dccd531bea72f68f3317324ea051 (patch)
tree7c46a4aab7560f176209fe10d40e1ec2df488a46 /sql/item.h
parentc639329afbde2bd9d59b488d43dde355c1c54678 (diff)
downloadmariadb-git-9d9bcf25e7d6dccd531bea72f68f3317324ea051.tar.gz
Fix sorting of NULL values (Should always be first)
Fix problem with HAVING and MAX() IS NOT NULL
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 5028f25c6b8..660a36ee967 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -343,6 +343,11 @@ public:
null_value=(*ref)->null_value;
return tmp;
}
+ bool is_null()
+ {
+ (void) (*ref)->val_int_result();
+ return (*ref)->null_value;
+ }
bool get_date(TIME *ltime,bool fuzzydate)
{
return (null_value=(*ref)->get_date(ltime,fuzzydate));