~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/handler0alter.cc

Merged Drizzle's Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
140
140
        const ulint*            offsets)        /*!< in: rec_get_offsets(
141
141
                                                rec, index, ...) */
142
142
{
143
 
        uint    n_fields        = table->getShare()->fields;
 
143
        uint    n_fields        = table->getShare()->sizeFields();
144
144
        uint    i;
145
145
 
146
146
        ut_ad(n_fields == dict_table_get_n_user_cols(index->table));
147
147
 
148
148
        for (i = 0; i < n_fields; i++) {
149
 
                Field*          field   = table->field[i];
 
149
                Field*          field   = table->getField(i);
150
150
                ulint           ipos;
151
151
                ulint           ilen;
152
152
                const unsigned char*    ifield;
186
186
/*===============*/
187
187
        Table*                  table)          /*!< in/out: MySQL table */
188
188
{
189
 
        uint    n_fields        = table->getShare()->fields;
 
189
        uint    n_fields        = table->getShare()->sizeFields();
190
190
        uint    i;
191
191
 
192
192
        for (i = 0; i < n_fields; i++) {
193
 
                table->field[i]->set_default();
 
193
                table->getField(i)->set_default();
194
194
        }
195
195
}
196
196