Skip to content

Commit

Permalink
Update SQLiteClassDescriptor.java
Browse files Browse the repository at this point in the history
ofexport2 failed on my OF database until I made this change.
  • Loading branch information
wambold committed Feb 18, 2015
1 parent 8beab09 commit 654b6ad
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -164,4 +166,4 @@ public String getColumnsForSelect() {
public String getTableName() {
return tableName;
}
}
}

0 comments on commit 654b6ad

Please sign in to comment.