~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/unireg.cc

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
#include <drizzled/server_includes.h>
27
27
#include <drizzled/error.h>
28
28
#include <drizzled/virtual_column_info.h>
 
29
#include <drizzled/session.h>
29
30
 
30
31
/* For proto */
31
32
#include <string>
36
37
#define FCOMP                   17              /* Bytes for a packed field */
37
38
 
38
39
static unsigned char * pack_screens(List<Create_field> &create_fields,
39
 
                            uint32_t *info_length, uint32_t *screens, bool small_file);
40
 
static uint32_t pack_keys(unsigned char *keybuff,uint32_t key_count, KEY *key_info,
41
 
                      ulong data_offset);
 
40
                                    uint32_t *info_length, uint32_t *screens,
 
41
                                    bool small_file);
 
42
static uint32_t pack_keys(unsigned char *keybuff,uint32_t key_count,
 
43
                          KEY *key_info, ulong data_offset);
42
44
static bool pack_header(unsigned char *forminfo,
43
 
                        List<Create_field> &create_fields,
44
 
                        uint32_t info_length, uint32_t screens, uint32_t table_options,
45
 
                        ulong data_offset, handler *file);
46
 
static uint32_t get_interval_id(uint32_t *int_count,List<Create_field> &create_fields,
47
 
                            Create_field *last_field);
 
45
                        List<Create_field> &create_fields,
 
46
                        uint32_t info_length, uint32_t screens,
 
47
                        uint32_t table_options,
 
48
                        ulong data_offset, handler *file);
 
49
static uint32_t get_interval_id(uint32_t *int_count,
 
50
                                List<Create_field> &create_fields,
 
51
                                Create_field *last_field);
48
52
static bool pack_fields(File file, List<Create_field> &create_fields,
49
53
                        ulong data_offset);
50
 
static bool make_empty_rec(Session *session, int file, enum legacy_db_type table_type,
51
 
                           uint32_t table_options,
52
 
                           List<Create_field> &create_fields,
53
 
                           uint32_t reclength, ulong data_offset,
 
54
static bool make_empty_rec(Session *session, int file,
 
55
                           enum legacy_db_type table_type,
 
56
                           uint32_t table_options,
 
57
                           List<Create_field> &create_fields,
 
58
                           uint32_t reclength, ulong data_offset,
54
59
                           handler *handler);
55
60
 
56
61
/**