[#4022] NullPointerException when generating SQLite table with composite primary key

This commit is contained in:
Lukas Eder 2015-02-03 18:58:21 +01:00
parent 427e3471c0
commit e48eb20fbb

View File

@ -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