August Mueller 13 年之前
父節點
當前提交
355a5913e0
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/fmdb.m

+ 4 - 0
src/fmdb.m

@@ -117,6 +117,8 @@ int main (int argc, const char * argv[]) {
     // the autorelease pool closes, so sqlite will complain about it.
     [rs close];  
     
+    FMDBQuickCheck(![db hasOpenResultSets]);
+    
     // ----------------------------------------------------------------------------------------
     // blob support.
     [db executeUpdate:@"create table blobTable (a text, b blob)"];
@@ -736,6 +738,8 @@ int main (int argc, const char * argv[]) {
                 rowCount++;
             }
             
+            FMDBQuickCheck(![db hasOpenResultSets]);
+            
             NSLog(@"after rollback, rowCount is %d (should be 2)", rowCount);
             
             FMDBQuickCheck(rowCount == 2);