~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

  • Committer: Brian Aker
  • Date: 2009-09-16 21:55:09 UTC
  • mfrom: (1126.3.5 alter_table)
  • mto: This revision was merged to the branch mainline in revision 1128.
  • Revision ID: brian@gaz-20090916215509-cuq5yuvlnx2b45b3
Merge Jay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
                       HA_CREATE_INFO *create_info,
49
49
                       drizzled::message::Table *create_proto,
50
50
                       TableList *table_list,
51
 
                       Alter_info *alter_info,
 
51
                       AlterInfo *alter_info,
52
52
                       uint32_t order_num, order_st *order, bool ignore);
53
53
bool mysql_checksum_table(Session* session, TableList* table_list,
54
54
                          HA_CHECK_OPT* check_opt);
64
64
 
65
65
bool is_primary_key(KEY *key_info);
66
66
const char* is_primary_key_name(const char* key_name);
 
67
bool check_engine(Session *, const char *, HA_CREATE_INFO *);
 
68
void set_table_default_charset(HA_CREATE_INFO *create_info, char *db);
 
69
/*
 
70
  Preparation for table creation
 
71
 
 
72
  SYNOPSIS
 
73
    mysql_prepare_create_table()
 
74
      session                       Thread object.
 
75
      create_info               Create information (like MAX_ROWS).
 
76
      alter_info                List of columns and indexes to create
 
77
      tmp_table                 If a temporary table is to be created.
 
78
      db_options          INOUT Table options (like HA_OPTION_PACK_RECORD).
 
79
      file                      The handler for the new table.
 
80
      key_info_buffer     OUT   An array of KEY structs for the indexes.
 
81
      key_count           OUT   The number of elements in the array.
 
82
      select_field_count        The number of fields coming from a select table.
 
83
 
 
84
  DESCRIPTION
 
85
    Prepares the table and key structures for table creation.
 
86
 
 
87
  NOTES
 
88
    sets create_info->varchar if the table has a varchar
 
89
 
 
90
  RETURN VALUES
 
91
    false    OK
 
92
    true     error
 
93
*/
 
94
int mysql_prepare_create_table(Session *session,
 
95
                               HA_CREATE_INFO *create_info,
 
96
                               AlterInfo *alter_info,
 
97
                               bool tmp_table,
 
98
                               uint32_t *db_options,
 
99
                               handler *file,
 
100
                               KEY **key_info_buffer,
 
101
                               uint32_t *key_count,
 
102
                               int select_field_count);
67
103
 
68
104
#endif /* DRIZZLE_SERVER_SQL_TABLE_H */