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

Method CompVal

storage/connect/valblk.cpp:535–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533/***********************************************************************/
534template <class TYPE>
535int TYPBLK<TYPE>::CompVal(PVAL vp, int n)
536 {
537#if defined(_DEBUG)
538 ChkIndx(n);
539 ChkTyp(vp);
540#endif // _DEBUG
541 TYPE mlv = UnalignedRead(n);
542 TYPE vlv = GetTypedValue(vp);
543
544 return (vlv > mlv) ? 1 : (vlv < mlv) ? (-1) : 0;
545 } // end of CompVal
546
547/***********************************************************************/
548/* Compare two values of the block. */

Callers 5

AddDistinctValueMethod · 0.45
BlockEvalMethod · 0.45
QcompareMethod · 0.45
FindMethod · 0.45
QcompareMethod · 0.45

Calls 3

GetCharValueMethod · 0.45
IsCiMethod · 0.45
IsNullMethod · 0.45

Tested by

no test coverage detected