~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/unireg.cc

  • Committer: Brian Aker
  • Date: 2008-09-27 22:43:08 UTC
  • Revision ID: brian@tangent.org-20080927224308-5h8al9f9wtsdtu7v
Removed legacy bits around enum.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                            uint *info_length, uint *screens, bool small_file);
33
33
static uint pack_keys(uchar *keybuff,uint key_count, KEY *key_info,
34
34
                      ulong data_offset);
35
 
static bool pack_header(uchar *forminfo,enum legacy_db_type table_type,
 
35
static bool pack_header(uchar *forminfo,
36
36
                        List<Create_field> &create_fields,
37
37
                        uint info_length, uint screens, uint table_options,
38
38
                        ulong data_offset, handler *file);
129
129
 
130
130
  thd->push_internal_handler(&pack_header_error_handler);
131
131
 
132
 
  error= pack_header(forminfo, ha_legacy_type(create_info->db_type),
 
132
  error= pack_header(forminfo,
133
133
                     create_fields,info_length,
134
134
                     screens, create_info->table_options,
135
135
                     data_offset, db_file);
145
145
    // Try again without UNIREG screens (to get more columns)
146
146
    if (!(screen_buff=pack_screens(create_fields,&info_length,&screens,1)))
147
147
      return(1);
148
 
    if (pack_header(forminfo, ha_legacy_type(create_info->db_type),
 
148
    if (pack_header(forminfo,
149
149
                    create_fields,info_length,
150
150
                    screens, create_info->table_options, data_offset, db_file))
151
151
    {
560
560
/* Make formheader */
561
561
 
562
562
static bool pack_header(uchar *forminfo,
563
 
                        enum legacy_db_type table_type __attribute__((unused)),
564
563
                        List<Create_field> &create_fields,
565
564
                        uint info_length, uint screens, uint table_options,
566
565
                        ulong data_offset, handler *file)