|
|
@@ -511,6 +511,9 @@ int main (int argc, const char * argv[]) {
|
|
|
|
|
|
[db executeUpdate:@"create table nulltest2 (s text, d data, i integer, f double, b integer)"];
|
|
|
|
|
|
+ // grab the data for this again, since we overwrote it with some memory that has since disapeared.
|
|
|
+ safariCompass = [NSData dataWithContentsOfFile:@"/Applications/Safari.app/Contents/Resources/compass.icns"];
|
|
|
+
|
|
|
[db executeUpdate:@"insert into nulltest2 (s, d, i, f, b) values (?, ?, ?, ?, ?)" , @"Hi", safariCompass, [NSNumber numberWithInt:12], [NSNumber numberWithFloat:4.4f], [NSNumber numberWithBool:YES]];
|
|
|
[db executeUpdate:@"insert into nulltest2 (s, d, i, f, b) values (?, ?, ?, ?, ?)" , nil, nil, nil, nil, [NSNull null]];
|
|
|
|