MCPcopy Create free account
hub / github.com/MariaDB/server / cmp_unit_op

Function cmp_unit_op

sql/sql_lex.h:115–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113};
114
115inline int cmp_unit_op(enum sub_select_type op1, enum sub_select_type op2)
116{
117 DBUG_ASSERT(op1 >= UNION_TYPE && op1 <= EXCEPT_TYPE);
118 DBUG_ASSERT(op2 >= UNION_TYPE && op2 <= EXCEPT_TYPE);
119 return (op1 == INTERSECT_TYPE ? 1 : 0) - (op2 == INTERSECT_TYPE ? 1 : 0);
120}
121
122enum unit_common_op {OP_MIX, OP_UNION, OP_INTERSECT, OP_EXCEPT};
123

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected