mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -233,8 +233,15 @@ public class ExportDb
|
|||||||
|
|
||||||
column.setOrder(columns.getInt("ORDINAL_POSITION"));
|
column.setOrder(columns.getInt("ORDINAL_POSITION"));
|
||||||
|
|
||||||
String autoIncString = columns.getString("IS_AUTOINCREMENT");
|
try
|
||||||
column.setAutoIncrement(parseBoolean(autoIncString));
|
{
|
||||||
|
String autoIncString = columns.getString("IS_AUTOINCREMENT");
|
||||||
|
column.setAutoIncrement(parseBoolean(autoIncString));
|
||||||
|
}
|
||||||
|
catch(SQLException jtdsDoesNOtHAveIsUatoincrement)
|
||||||
|
{
|
||||||
|
column.setAutoIncrement((dbType.endsWith("identity")));
|
||||||
|
}
|
||||||
|
|
||||||
column.setParent(table);
|
column.setParent(table);
|
||||||
table.getColumns().add(column);
|
table.getColumns().add(column);
|
||||||
|
Reference in New Issue
Block a user