~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_mysql.cc

  • Committer: Mark Atwood
  • Date: 2011-08-12 04:08:33 UTC
  • mfrom: (2385.2.17 refactor5)
  • Revision ID: me@mark.atwood.name-20110812040833-u6j85nc6ahuc0dtz
mergeĀ lp:~olafvdspek/drizzle/refactor5

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
    DrizzleDumpFieldMySQL *field = new DrizzleDumpFieldMySQL(fieldName, dcon);
185
185
    /* Stop valgrind warning */
186
186
    field->convertDateTime= false;
187
 
    field->isNull= (strcmp(row[3], "YES") == 0) ? true : false;
 
187
    field->isNull= strcmp(row[3], "YES") == 0;
188
188
    /* Also sets collation */
189
189
    field->setType(row[1], row[8]);
190
190
    if (field->type.compare("ENUM") == 0)
203
203
      field->defaultValue= "";
204
204
    }
205
205
 
206
 
    field->isAutoIncrement= (strcmp(row[8], "auto_increment") == 0) ? true : false;
 
206
    field->isAutoIncrement= strcmp(row[8], "auto_increment") == 0;
207
207
    field->defaultIsNull= field->isNull;
208
208
 
209
209
    /* Seriously MySQL, why is BIT length in NUMERIC_PRECISION? */