Commit d581287b authored by sergefp@mysql.com's avatar sergefp@mysql.com

Better comments for void Item::top_level_item()

parent 83bc48f3
...@@ -275,9 +275,16 @@ public: ...@@ -275,9 +275,16 @@ public:
Any new item which can be NULL must implement this call. Any new item which can be NULL must implement this call.
*/ */
virtual bool is_null() { return 0; } virtual bool is_null() { return 0; }
/* /*
it is "top level" item of WHERE clause and we do not need correct NULL Inform the item that there will be no distinction between its result
handling 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() {} virtual void top_level_item() {}
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment