Skip to content

Commit

Permalink
backing up and just using the autoincrement logic for hsqldb only
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Oct 26, 2011
1 parent 71c7c31 commit e132d1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -832,10 +832,6 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String, Object
column.setScale(scale);
}
column.setRequired("NO".equalsIgnoreCase(((String) values.get("IS_NULLABLE")).trim()));
String autoIncrement = (String)values.get("IS_AUTOINCREMENT");
if (autoIncrement != null) {
column.setAutoIncrement("YES".equalsIgnoreCase(autoIncrement.trim()));
}
column.setDescription((String) values.get("REMARKS"));

return column;
Expand Down
Expand Up @@ -59,6 +59,11 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String,Object>
{
column.setDefaultValue(unescape(column.getDefaultValue(), "'", "''"));
}

String autoIncrement = (String)values.get("IS_AUTOINCREMENT");
if (autoIncrement != null) {
column.setAutoIncrement("YES".equalsIgnoreCase(autoIncrement.trim()));
}
return column;
}

Expand Down

0 comments on commit e132d1e

Please sign in to comment.