mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
Merge mysql.com:/home/ram/work/mysql-5.0-maint
into mysql.com:/home/ram/work/b21976/my50-b21976 sql/item.h: Auto merged mysql-test/r/func_group.result: merging mysql-test/t/func_group.test: merging sql/item_sum.cc: merging
This commit is contained in:
commit
9683b0ae68
4 changed files with 29 additions and 34 deletions
11
sql/item.h
11
sql/item.h
|
|
@ -694,12 +694,11 @@ public:
|
|||
virtual bool get_date_result(TIME *ltime,uint fuzzydate)
|
||||
{ return get_date(ltime,fuzzydate); }
|
||||
/*
|
||||
This function is used only in Item_func_isnull/Item_func_isnotnull
|
||||
(implementations of IS NULL/IS NOT NULL clauses). Item_func_is{not}null
|
||||
calls this method instead of one of val/result*() methods, which
|
||||
normally will set null_value. This allows to determine nullness of
|
||||
a complex expression without fully evaluating it.
|
||||
Any new item which can be NULL must implement this call.
|
||||
The method allows to determine nullness of a complex expression
|
||||
without fully evaluating it, instead of calling val/result*() then
|
||||
checking null_value. Used in Item_func_isnull/Item_func_isnotnull
|
||||
and Item_sum_count/Item_sum_count_distinct.
|
||||
Any new item which can be NULL must implement this method.
|
||||
*/
|
||||
virtual bool is_null() { return 0; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue