|
@@ -302,7 +302,8 @@ int main (int argc, const char * argv[]) {
|
|
|
[db executeUpdate:@"create table blobTable (a text, b blob)"];
|
|
[db executeUpdate:@"create table blobTable (a text, b blob)"];
|
|
|
|
|
|
|
|
// let's read in an image from safari's app bundle.
|
|
// let's read in an image from safari's app bundle.
|
|
|
- NSData *safariCompass = [NSData dataWithContentsOfFile:@"/Applications/Safari.app/Contents/Resources/compass.icns"];
|
|
|
|
|
|
|
+ NSData *safariCompass = [NSData dataWithContentsOfFile:@"/Applications/Safari.app/Contents/Resources/AppIcon.icns"];
|
|
|
|
|
+ assert(safariCompass);
|
|
|
if (safariCompass) {
|
|
if (safariCompass) {
|
|
|
[db executeUpdate:@"insert into blobTable (a, b) values (?,?)", @"safari's compass", safariCompass];
|
|
[db executeUpdate:@"insert into blobTable (a, b) values (?,?)", @"safari's compass", safariCompass];
|
|
|
|
|
|
|
@@ -543,7 +544,8 @@ int main (int argc, const char * argv[]) {
|
|
|
[db executeUpdate:@"create table nulltest2 (s text, d data, i integer, f double, b integer)"];
|
|
[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.
|
|
// 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"];
|
|
|
|
|
|
|
+ safariCompass = [NSData dataWithContentsOfFile:@"/Applications/Safari.app/Contents/Resources/AppIcon.icns"];
|
|
|
|
|
+ assert(safariCompass);
|
|
|
|
|
|
|
|
[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 (?, ?, ?, ?, ?)" , @"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]];
|
|
[db executeUpdate:@"insert into nulltest2 (s, d, i, f, b) values (?, ?, ?, ?, ?)" , nil, nil, nil, nil, [NSNull null]];
|