~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.h

  • Committer: Monty Taylor
  • Date: 2008-08-10 06:11:44 UTC
  • mto: (312.1.3 translations)
  • mto: This revision was merged to the branch mainline in revision 295.
  • Revision ID: monty@inaugust.com-20080810061144-llnyqeju5zckd6pw
Oy. Replaced max and min macros with std::max and std::min so that we get
strong typing. And, then, cast things in the right direction...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1643
1643
  { return (HA_ERR_WRONG_COMMAND); }
1644
1644
 
1645
1645
  uint max_record_length() const
1646
 
  { return min(HA_MAX_REC_LENGTH, max_supported_record_length()); }
 
1646
  { return min((unsigned int)HA_MAX_REC_LENGTH, max_supported_record_length()); }
1647
1647
  uint max_keys() const
1648
 
  { return min(MAX_KEY, max_supported_keys()); }
 
1648
  { return min((unsigned int)MAX_KEY, max_supported_keys()); }
1649
1649
  uint max_key_parts() const
1650
 
  { return min(MAX_REF_PARTS, max_supported_key_parts()); }
 
1650
  { return min((unsigned int)MAX_REF_PARTS, max_supported_key_parts()); }
1651
1651
  uint max_key_length() const
1652
 
  { return min(MAX_KEY_LENGTH, max_supported_key_length()); }
 
1652
  { return min((unsigned int)MAX_KEY_LENGTH, max_supported_key_length()); }
1653
1653
  uint max_key_part_length(void) const
1654
 
  { return min(MAX_KEY_LENGTH, max_supported_key_part_length()); }
 
1654
  { return min((unsigned int)MAX_KEY_LENGTH, max_supported_key_part_length()); }
1655
1655
 
1656
1656
  virtual uint max_supported_record_length(void) const
1657
1657
  { return HA_MAX_REC_LENGTH; }