~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/unireg.cc

  • Committer: Brian Aker
  • Date: 2008-10-20 03:40:03 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-20081020034003-t2dcnl0ayr2ymm8k
THD -> Session rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                            Create_field *last_field);
41
41
static bool pack_fields(File file, List<Create_field> &create_fields,
42
42
                        ulong data_offset);
43
 
static bool make_empty_rec(THD *thd, int file, enum legacy_db_type table_type,
 
43
static bool make_empty_rec(Session *thd, int file, enum legacy_db_type table_type,
44
44
                           uint32_t table_options,
45
45
                           List<Create_field> &create_fields,
46
46
                           uint32_t reclength, ulong data_offset,
58
58
  virtual bool handle_error(uint32_t sql_errno,
59
59
                            const char *message,
60
60
                            DRIZZLE_ERROR::enum_warning_level level,
61
 
                            THD *thd);
 
61
                            Session *thd);
62
62
  bool is_handled;
63
63
  Pack_header_error_handler() :is_handled(false) {}
64
64
};
69
69
handle_error(uint32_t sql_errno,
70
70
             const char * /* message */,
71
71
             DRIZZLE_ERROR::enum_warning_level /* level */,
72
 
             THD * /* thd */)
 
72
             Session * /* thd */)
73
73
{
74
74
  is_handled= (sql_errno == ER_TOO_MANY_FIELDS);
75
75
  return is_handled;
95
95
    1  error
96
96
*/
97
97
 
98
 
bool mysql_create_frm(THD *thd, const char *file_name,
 
98
bool mysql_create_frm(Session *thd, const char *file_name,
99
99
                      const char *db, const char *table,
100
100
                      HA_CREATE_INFO *create_info,
101
101
                      List<Create_field> &create_fields,
371
371
    1  error
372
372
*/
373
373
 
374
 
int rea_create_table(THD *thd, const char *path,
 
374
int rea_create_table(Session *thd, const char *path,
375
375
                     const char *db, const char *table_name,
376
376
                     HA_CREATE_INFO *create_info,
377
377
                     List<Create_field> &create_fields,
940
940
 
941
941
/* save an empty record on start of formfile */
942
942
 
943
 
static bool make_empty_rec(THD *thd, File file,
 
943
static bool make_empty_rec(Session *thd, File file,
944
944
                           enum legacy_db_type table_type __attribute__((unused)),
945
945
                           uint32_t table_options,
946
946
                           List<Create_field> &create_fields,