summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorigor@olga.mysql.com <>2006-07-06 13:40:08 -0700
committerigor@olga.mysql.com <>2006-07-06 13:40:08 -0700
commitf6d6ac1e0f5bc580c7aafaf605ef2a32956f7c2a (patch)
treee627c269131cbb540c25419b17b0e62991ac3825 /sql/item.h
parent0a169c4cfd1c33612080b3c9295ce4eafe844636 (diff)
parent6e1c8ad8308d6a02488940802c43a6efee87b0fb (diff)
downloadmariadb-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.h11
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() {}
/*