Skip to content

Commit

Permalink
default value of identity column should be blanked out on reading of …
Browse files Browse the repository at this point in the history
…h2 table
  • Loading branch information
chenson42 committed May 1, 2012
1 parent 8b387d1 commit b833d24
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -65,8 +65,8 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String, Object
}

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

0 comments on commit b833d24

Please sign in to comment.