~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/min_max.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 04:28:21 UTC
  • mto: (492.3.21 drizzle-clean-code)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: brian@tangent.org-20081020042821-rqqdrccuu8195k3y
Second pass of thd cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    agg_arg_charsets(collation, args, arg_count, MY_COLL_CMP_CONV, 1);
51
51
    if (datetime_found)
52
52
    {
53
 
      thd= current_thd;
 
53
      session= current_session;
54
54
      compare_as_dates= true;
55
55
    }
56
56
  }
88
88
  {
89
89
    Item **arg= args + i;
90
90
    bool is_null;
91
 
    uint64_t res= get_datetime_value(thd, &arg, 0, datetime_item, &is_null);
 
91
    uint64_t res= get_datetime_value(session, &arg, 0, datetime_item, &is_null);
92
92
    if ((null_value= args[i]->null_value))
93
93
      return 0;
94
94
    if (i == 0 || (res < min_max ? cmp_sign : -cmp_sign) > 0)