My Project
Public Member Functions
Join_tab_compare_default Class Reference

#include <sql_select.h>

List of all members.

Public Member Functions

bool operator() (const JOIN_TAB *jt1, const JOIN_TAB *jt2)

Detailed Description

"Less than" comparison function object used to compare two JOIN_TAB objects based on a number of factors in this order:

jt1first JOIN_TAB object
jt2second JOIN_TAB object
The order relation implemented by Join_tab_compare_default is not transitive, i.e. it is possible to choose a, b and c such that (a < b) && (b < c) but (c < a). This is the case in the following example:

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.

true if jt1 is smaller than jt2, false otherwise

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines