diff --git a/src/main/java/org/psidnell/omnifocus/sqlite/SQLiteClassDescriptor.java b/src/main/java/org/psidnell/omnifocus/sqlite/SQLiteClassDescriptor.java index d877dcb..149781e 100644 --- a/src/main/java/org/psidnell/omnifocus/sqlite/SQLiteClassDescriptor.java +++ b/src/main/java/org/psidnell/omnifocus/sqlite/SQLiteClassDescriptor.java @@ -131,6 +131,8 @@ private Object getValue(ResultSet rs, SQLITEPropertyDescriptor desc) throws SQLE int secondsSince2001; if (rawValue instanceof Integer) { secondsSince2001 = (Integer) rawValue; + } else if (rawValue instanceof Long) { + secondsSince2001 = ((Long) rawValue).intValue(); } else { secondsSince2001 = ((Double) rawValue).intValue(); } @@ -164,4 +166,4 @@ public String getColumnsForSelect() { public String getTableName() { return tableName; } -} \ No newline at end of file +}