~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_buff.cc

  • Committer: Monty Taylor
  • Date: 2008-10-02 01:31:53 UTC
  • mfrom: (398.1.6 codestyle-new)
  • Revision ID: monty@inaugust.com-20081002013153-b097om921cd3j1pn
MergedĀ fromĀ stdint-includes-fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
*/
64
64
 
65
65
Cached_item_str::Cached_item_str(THD *thd, Item *arg)
66
 
  :item(arg), value(min(arg->max_length, (uint32_t)thd->variables.max_sort_length))
 
66
  :item(arg), value(cmin(arg->max_length, (uint32_t)thd->variables.max_sort_length))
67
67
{}
68
68
 
69
69
bool Cached_item_str::cmp(void)
72
72
  bool tmp;
73
73
 
74
74
  if ((res=item->val_str(&tmp_value)))
75
 
    res->length(min(res->length(), value.alloced_length()));
 
75
    res->length(cmin(res->length(), value.alloced_length()));
76
76
 
77
77
  if (null_value != item->null_value)
78
78
  {