~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/ha_myisam.cc

  • Committer: Monty Taylor
  • Date: 2008-08-18 23:04:17 UTC
  • mfrom: (327.1.12 drizzle)
  • Revision ID: monty@inaugust.com-20080818230417-442rhihpahnout34
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
 
103
103
 
104
104
/*
105
 
  Convert TABLE object to MyISAM key and column definition
 
105
  Convert Table object to MyISAM key and column definition
106
106
 
107
107
  SYNOPSIS
108
108
    table2myisam()
109
 
      table_arg   in     TABLE object.
 
109
      table_arg   in     Table object.
110
110
      keydef_out  out    MyISAM key definition.
111
111
      recinfo_out out    MyISAM column definition.
112
112
      records_out out    Number of fields.
125
125
    !0 error code
126
126
*/
127
127
 
128
 
int table2myisam(TABLE *table_arg, MI_KEYDEF **keydef_out,
 
128
int table2myisam(Table *table_arg, MI_KEYDEF **keydef_out,
129
129
                 MI_COLUMNDEF **recinfo_out, uint *records_out)
130
130
{
131
131
  uint i, j, recpos, minpos, fieldpos, temp_length, length;
845
845
  param.out_flag= 0;
846
846
  stpcpy(fixed_name,file->filename);
847
847
 
848
 
  // Don't lock tables if we have used LOCK TABLE
 
848
  // Don't lock tables if we have used LOCK Table
849
849
  if (!thd->locked_tables && 
850
850
      mi_lock_database(file, table->s->tmp_table ? F_EXTRA_LCK : F_WRLCK))
851
851
  {
1609
1609
}
1610
1610
 
1611
1611
 
1612
 
int ha_myisam::create(const char *name, register TABLE *table_arg,
 
1612
int ha_myisam::create(const char *name, register Table *table_arg,
1613
1613
                      HA_CREATE_INFO *ha_create_info)
1614
1614
{
1615
1615
  int error;