My Project
|
#include <sql_select.h>
Public Member Functions | |
bool | operator() (const JOIN_TAB *jt1, const JOIN_TAB *jt2) |
"Less than" comparison function object used to compare two JOIN_TAB objects based on a number of factors in this order:
jt1 | first JOIN_TAB object |
jt2 | second JOIN_TAB object |
a: dependent = <none> found_records = 3 b: dependent = <none> found_records = 4 c: dependent = b found_records = 2
a < b: because a has fewer records b < c: because c depends on b (e.g outer join dependency) c < a: because c has fewer records
This implies that the result of a sort using the relation implemented by Join_tab_compare_default () depends on the order in which elements are compared, i.e. the result is implementation-specific.