Skip to content

Commit

Permalink
Merge pull request #10 from orbitaloop/patch-1
Browse files Browse the repository at this point in the history
Wrong value when reading big numbers such as TIMESTAMP
  • Loading branch information
davibe committed Mar 18, 2012
2 parents 3439397 + 35694c1 commit 28d54ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugins/PGSQLitePlugin.m
Expand Up @@ -165,7 +165,7 @@ -(void) executeSql: (NSMutableArray*)arguments withDict:(NSMutableDictionary*)op
column_type = sqlite3_column_type(statement, i);
switch (column_type) {
case SQLITE_INTEGER:
columnValue = [NSNumber numberWithInt: sqlite3_column_int(statement, i)];
columnValue = [NSNumber numberWithDouble: sqlite3_column_double(statement, i)];
columnName = [NSString stringWithFormat:@"%s", sqlite3_column_name(statement, i)];
[entry setObject:columnValue forKey:columnName];
break;
Expand Down

0 comments on commit 28d54ea

Please sign in to comment.