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

Function my_time_compare

sql/sql_time.cc:868–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

866*/
867
868int my_time_compare(const MYSQL_TIME *a, const MYSQL_TIME *b)
869{
870 ulonglong a_t= pack_time(a);
871 ulonglong b_t= pack_time(b);
872
873 if (a_t < b_t)
874 return -1;
875 if (a_t > b_t)
876 return 1;
877
878 return 0;
879}
880
881
882/**

Callers 3

queryMethod · 0.85
Item_const_eqMethod · 0.85

Calls 1

pack_timeFunction · 0.85

Tested by

no test coverage detected