mirror of
https://github.com/MariaDB/server.git
synced 2026-04-23 08:45:33 +02:00
Better comments for void Item::top_level_item()
This commit is contained in:
parent
52a1639b0e
commit
1401c2c71c
1 changed files with 9 additions and 2 deletions
11
sql/item.h
11
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() {}
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue