diff options
author | unknown <sergefp@mysql.com> | 2006-07-04 13:28:30 +0400 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2006-07-04 13:28:30 +0400 |
commit | 1401c2c71c5a99a6ac8e340138c5569fabd3f42e (patch) | |
tree | 3421329e91b60fb3e682e6f47d18917fa21fdbaf /sql/item.h | |
parent | 52a1639b0eb669363cfa311b5ce24aa83076a426 (diff) | |
download | mariadb-git-1401c2c71c5a99a6ac8e340138c5569fabd3f42e.tar.gz |
Better comments for void Item::top_level_item()
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h index eca8ee184a1..3eab695cb5e 100644 --- a/sql/item.h +++ b/sql/item.h @@ -275,9 +275,16 @@ public: Any new item which can be NULL must implement this call. */ virtual bool is_null() { return 0; } + /* - it is "top level" item of WHERE clause and we do not need correct NULL - handling + Inform the item that there will be no distinction between its result + being FALSE or NULL. + + NOTE + This function will be called for eg. Items that are top-level AND-parts + of the WHERE clause. Items implementing this function (currently + Item_cond_and and subquery-related item) enable special optimizations + when they are "top level". */ virtual void top_level_item() {} /* |