提交 d6d01de9 authored 作者: Thomas Mueller's avatar Thomas Mueller

Linked tables to SQLite database can now be created.

上级 1dc946ee
...@@ -204,7 +204,12 @@ public class TableLink extends Table { ...@@ -204,7 +204,12 @@ public class TableLink extends Table {
String col = rs.getString("COLUMN_NAME"); String col = rs.getString("COLUMN_NAME");
col = convertColumnName(col); col = convertColumnName(col);
Column column = (Column) columnMap.get(col); Column column = (Column) columnMap.get(col);
list.set(idx - 1, column); if (idx == 0) {
// workaround for a bug in the SQLite JDBC driver
list.add(column);
} else {
list.set(idx - 1, column);
}
} while (rs.next()); } while (rs.next());
addIndex(list, IndexType.createPrimaryKey(false, false)); addIndex(list, IndexType.createPrimaryKey(false, false));
rs.close(); rs.close();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论