commitConnection(destCon);
}
if (prefs.isCopyIndexDefs()) {
Collection<String> indices = null;
ISQLDatabaseMetaData sqlmd = sourceSession.getMetaData();
if (prefs.isCopyPrimaryKeys()) {
PrimaryKeyInfo[] pkList = sqlmd.getPrimaryKey(ti);
List<PrimaryKeyInfo> pkList2 = Arrays.asList(pkList);
indices = DialectUtils.createIndexes(ti, sqlmd, pkList2, new CreateScriptPreferences());
} else {
indices = DialectUtils.createIndexes(ti, sqlmd, null, new CreateScriptPreferences());
}