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

Method CompareValue

storage/connect/value.cpp:993–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

991/***********************************************************************/
992template <class TYPE>
993int TYPVAL<TYPE>::CompareValue(PVAL vp)
994{
995//assert(vp->GetType() == Type);
996
997 // Process filtering on numeric values.
998 TYPE n = GetTypedValue(vp);
999
1000//if (trace(1))
1001// htrc(" Comparing: val=%d,%d\n", Tval, n);
1002
1003 return (Tval > n) ? 1 : (Tval < n) ? (-1) : 0;
1004} // end of CompareValue
1005
1006/***********************************************************************/
1007/* Return max type value if b is true, else min type value. */

Callers 1

CheckSortedMethod · 0.80

Calls 4

htrcFunction · 0.70
GetCharValueMethod · 0.45
IsCiMethod · 0.45
GetFloatValueMethod · 0.45

Tested by

no test coverage detected