~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzledump_mysql.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-08 09:51:16 UTC
  • mto: This revision was merged to the branch mainline in revision 2396.
  • Revision ID: olafvdspek@gmail.com-20110808095116-hnodu1sdn0vezgfn
cppcheck

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? */