Fix auto increment column detection for SQL server identity columns 0 the type always has "identity" at the end

- should fix the last SQL Server build issue.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32826 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2011-12-16 21:03:00 +00:00
parent d7f79daba2
commit 89e984b439

View File

@@ -233,8 +233,15 @@ public class ExportDb
column.setOrder(columns.getInt("ORDINAL_POSITION"));
try
{
String autoIncString = columns.getString("IS_AUTOINCREMENT");
column.setAutoIncrement(parseBoolean(autoIncString));
}
catch(SQLException jtdsDoesNOtHAveIsUatoincrement)
{
column.setAutoIncrement((dbType.endsWith("identity")));
}
column.setParent(table);
table.getColumns().add(column);