~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.h

Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
const char* is_primary_key_name(const char* key_name);
76
76
bool check_engine(Session *, const char *, message::Table *, HA_CREATE_INFO *);
77
77
void set_table_default_charset(HA_CREATE_INFO *create_info, const char *db);
78
 
/*
79
 
  Preparation for table creation
80
 
 
81
 
  SYNOPSIS
82
 
    mysql_prepare_create_table()
83
 
      session                       Thread object.
84
 
      create_info               Create information (like MAX_ROWS).
85
 
      alter_info                List of columns and indexes to create
86
 
      tmp_table                 If a temporary table is to be created.
87
 
      db_options          INOUT Table options (like HA_OPTION_PACK_RECORD).
88
 
      file                      The Cursor for the new table.
89
 
      key_info_buffer     OUT   An array of KEY structs for the indexes.
90
 
      key_count           OUT   The number of elements in the array.
91
 
      select_field_count        The number of fields coming from a select table.
92
 
 
93
 
  DESCRIPTION
94
 
    Prepares the table and key structures for table creation.
95
 
 
96
 
  NOTES
97
 
    sets create_info->varchar if the table has a varchar
98
 
 
99
 
  RETURN VALUES
100
 
    false    OK
101
 
    true     error
102
 
*/
103
 
int mysql_prepare_create_table(Session *session,
104
 
                               HA_CREATE_INFO *create_info,
105
 
                               message::Table *create_proto,
106
 
                               AlterInfo *alter_info,
107
 
                               bool tmp_table,
108
 
                               uint32_t *db_options,
109
 
                               Cursor *file,
110
 
                               KEY **key_info_buffer,
111
 
                               uint32_t *key_count,
112
 
                               int select_field_count);
113
 
 
114
 
 
115
78
} /* namespace drizzled */
116
79
 
117
80
#endif /* DRIZZLED_SQL_TABLE_H */