[#4022] NullPointerException when generating SQLite table with composite primary key
This commit is contained in:
parent
427e3471c0
commit
e48eb20fbb
@ -101,7 +101,7 @@ public class SQLiteDatabase extends AbstractDatabase {
|
||||
.fetch(SQLiteMaster.NAME)) {
|
||||
|
||||
for (Record record : create().fetch("pragma table_info('" + tableName + "')")) {
|
||||
if (record.getValue("pk", boolean.class)) {
|
||||
if (record.getValue("pk", int.class) > 0) {
|
||||
String columnName = record.getValue("name", String.class);
|
||||
|
||||
// Generate a primary key name
|
||||
|
||||
Loading…
Reference in New Issue
Block a user