~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/time.cc

  • Committer: Brian Aker
  • Date: 2008-07-13 22:21:51 UTC
  • Revision ID: brian@tangent.org-20080713222151-fv2tcpbsc829j2oc
Ulonglong to uint64_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
813
813
    ltime->hour=   (uint) (sec/3600);
814
814
    daynr= calc_daynr(ltime->year,ltime->month,1) + days;
815
815
    /* Day number from year 0 to 9999-12-31 */
816
 
    if ((ulonglong) daynr > MAX_DAY_NUMBER)
 
816
    if ((uint64_t) daynr > MAX_DAY_NUMBER)
817
817
      goto invalid_date;
818
818
    get_date_from_daynr((long) daynr, &ltime->year, &ltime->month,
819
819
                        &ltime->day);
966
966
int
967
967
my_time_compare(MYSQL_TIME *a, MYSQL_TIME *b)
968
968
{
969
 
  my_ulonglong a_t= TIME_to_ulonglong_datetime(a);
970
 
  my_ulonglong b_t= TIME_to_ulonglong_datetime(b);
 
969
  my_uint64_t a_t= TIME_to_uint64_t_datetime(a);
 
970
  my_uint64_t b_t= TIME_to_uint64_t_datetime(b);
971
971
 
972
972
  if (a_t > b_t)
973
973
    return 1;