~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_dynrec.cc

  • Committer: Gustaf Thorslund
  • Date: 2010-11-02 09:28:14 UTC
  • mto: (1911.1.1 build) (1900.1.3 build)
  • mto: This revision was merged to the branch mainline in revision 1901.
  • Revision ID: gustaf@thorslund.org-20101102092814-aih84whrkf6925kc
Replaced macros with functions/templates. Part of blueprint:
  https://blueprints.edge.launchpad.net/drizzle/+spec/replace-macro-functions/

Show diffs side-by-side

added added

removed removed

Lines of Context:
997
997
      }
998
998
      else if (type == FIELD_VARCHAR)
999
999
      {
1000
 
        uint32_t pack_length= HA_VARCHAR_PACKLENGTH(rec->length -1);
 
1000
        uint32_t pack_length= ha_varchar_packlength(rec->length -1);
1001
1001
        uint32_t tmp_length;
1002
1002
        if (pack_length == 1)
1003
1003
        {
1117
1117
      }
1118
1118
      else if (type == FIELD_VARCHAR)
1119
1119
      {
1120
 
        uint32_t pack_length= HA_VARCHAR_PACKLENGTH(rec->length -1);
 
1120
        uint32_t pack_length= ha_varchar_packlength(rec->length -1);
1121
1121
        uint32_t tmp_length;
1122
1122
        if (pack_length == 1)
1123
1123
        {
1190
1190
    {
1191
1191
      if (type == FIELD_VARCHAR)
1192
1192
      {
1193
 
        uint32_t pack_length= HA_VARCHAR_PACKLENGTH(rec_length-1);
 
1193
        uint32_t pack_length= ha_varchar_packlength(rec_length-1);
1194
1194
        if (pack_length == 1)
1195
1195
        {
1196
1196
          length= (uint) *(unsigned char*) from;