SQLiteManager4iOS icon indicating copy to clipboard operation
SQLiteManager4iOS copied to clipboard

floats are given int values

Open dcramps opened this issue 12 years ago • 1 comments

Lines 185-190

     case SQLITE_FLOAT:
     {
          float value = sqlite3_column_int(statement, i); //using sqlite3_column_int() when setting a float...
          [result setObject:[NSNumber numberWithFloat:value] forKey:columnName];
          break;
     }

All my floats were integers until I fixed it :(

dcramps avatar Sep 11 '12 07:09 dcramps

Hello there, what about to use double instead of float! There is a function "double sqlite3_column_double(sqlite3_stmt*, int iCol)";

okenjaev avatar Jan 14 '13 20:01 okenjaev