Skip to content

Commit

Permalink
check to see if auto increment is null
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Oct 26, 2011
1 parent d079240 commit 891878e
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -832,7 +832,10 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String, Object
column.setScale(scale);
}
column.setRequired("NO".equalsIgnoreCase(((String) values.get("IS_NULLABLE")).trim()));
column.setAutoIncrement("NO".equalsIgnoreCase(((String) values.get("IS_AUTOINCREMENT")).trim()));
String autoIncrement = (String)values.get("IS_AUTOINCREMENT");
if (autoIncrement != null) {
column.setAutoIncrement("NO".equalsIgnoreCase(autoIncrement.trim()));
}
column.setDescription((String) values.get("REMARKS"));

return column;
Expand Down

0 comments on commit 891878e

Please sign in to comment.