diff options
author | igor@olga.mysql.com <> | 2006-07-06 13:40:08 -0700 |
---|---|---|
committer | igor@olga.mysql.com <> | 2006-07-06 13:40:08 -0700 |
commit | f6d6ac1e0f5bc580c7aafaf605ef2a32956f7c2a (patch) | |
tree | e627c269131cbb540c25419b17b0e62991ac3825 /sql/item.h | |
parent | 0a169c4cfd1c33612080b3c9295ce4eafe844636 (diff) | |
parent | 6e1c8ad8308d6a02488940802c43a6efee87b0fb (diff) | |
download | mariadb-git-f6d6ac1e0f5bc580c7aafaf605ef2a32956f7c2a.tar.gz |
Merge olga.mysql.com:/home/igor/mysql-4.1-opt
into olga.mysql.com:/home/igor/mysql-5.0-opt
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 2cadfda6895..23849226c2f 100644 --- a/sql/item.h +++ b/sql/item.h @@ -697,9 +697,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() {} /* |