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

Function equal

sql/sql_select.cc:21504–21514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21502*/
21503
21504static bool equal(Item *i1, Item *i2, Field *f2)
21505{
21506 DBUG_ASSERT((i2 == NULL) ^ (f2 == NULL));
21507
21508 if (i2 != NULL)
21509 return i1->eq(i2, 1);
21510 else if (i1->type() == Item::FIELD_ITEM)
21511 return f2->eq(((Item_field *) i1)->field);
21512 else
21513 return FALSE;
21514}
21515
21516
21517/**

Callers 2

check_duplicate_keyFunction · 0.70

Calls 2

eqMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected