|
|
@@ -550,10 +550,7 @@ - (void)bindObject:(id)obj toColumn:(int)idx inStatement:(sqlite3_stmt*)pStmt {
|
|
|
}
|
|
|
else if ([obj isKindOfClass:[NSNumber class]]) {
|
|
|
|
|
|
- if (strcmp([obj objCType], @encode(BOOL)) == 0) {
|
|
|
- sqlite3_bind_int(pStmt, idx, ([obj boolValue] ? 1 : 0));
|
|
|
- }
|
|
|
- else if (strcmp([obj objCType], @encode(char)) == 0) {
|
|
|
+ if (strcmp([obj objCType], @encode(char)) == 0) {
|
|
|
sqlite3_bind_int(pStmt, idx, [obj charValue]);
|
|
|
}
|
|
|
else if (strcmp([obj objCType], @encode(unsigned char)) == 0) {
|
|
|
@@ -589,6 +586,9 @@ - (void)bindObject:(id)obj toColumn:(int)idx inStatement:(sqlite3_stmt*)pStmt {
|
|
|
else if (strcmp([obj objCType], @encode(double)) == 0) {
|
|
|
sqlite3_bind_double(pStmt, idx, [obj doubleValue]);
|
|
|
}
|
|
|
+ else if (strcmp([obj objCType], @encode(BOOL)) == 0) {
|
|
|
+ sqlite3_bind_int(pStmt, idx, ([obj boolValue] ? 1 : 0));
|
|
|
+ }
|
|
|
else {
|
|
|
sqlite3_bind_text(pStmt, idx, [[obj description] UTF8String], -1, SQLITE_STATIC);
|
|
|
}
|