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

Result sets with just a unique index can now be updated (previously a primary key was required).

上级 62532dbf
......@@ -82,9 +82,12 @@ public class UpdatableRow {
key.add(rs.getString("COLUMN_NAME"));
}
if (key.size() == 0) {
return;
rs = meta.getIndexInfo(null, schemaName, tableName, true, true);
while (rs.next()) {
key.add(rs.getString("COLUMN_NAME"));
}
}
isUpdatable = true;
isUpdatable = key.size() > 0;
}
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论