浏览代码

Fix FMDBQuickCheck for bulk test

robertmryan 11 年之前
父节点
当前提交
d10dc4f34f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/sample/main.m

+ 3 - 3
src/sample/main.m

@@ -243,7 +243,7 @@ int main (int argc, const char * argv[]) {
                          "insert into test2 (y) values ('YYY');"
                          "insert into test3 (z) values ('ZZZ');";
 
-        FMDBQuickCheck(db, [db executeBulkSQL:sql]);
+        FMDBQuickCheck([db executeBulkSQL:sql]);
     }
 
     {
@@ -251,7 +251,7 @@ int main (int argc, const char * argv[]) {
                          "select count(*) as count from test2;"
                          "select count(*) as count from test3;";
 
-        FMDBQuickCheck(db, [db executeBulkSQL:sql block:^int(NSDictionary *dictionary) {
+        FMDBQuickCheck([db executeBulkSQL:sql block:^int(NSDictionary *dictionary) {
             NSInteger count = [dictionary[@"count"] integerValue];
             if (count == 0) {
                 NSLog(@"executeBulkSQL: error: was expecting non-zero number of records; dictionary = %@", dictionary);
@@ -267,7 +267,7 @@ int main (int argc, const char * argv[]) {
                          "drop table test2;"
                          "drop table test3;";
 
-        FMDBQuickCheck(db, [db executeBulkSQL:sql]);
+        FMDBQuickCheck([db executeBulkSQL:sql]);
     }