Browse Source

Merge pull request #803 from Token-LiMing/patch-1

Update example code for FMResultSet
August "Gus" Mueller 5 years ago
parent
commit
9ae08346d3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      README.markdown

+ 1 - 0
README.markdown

@@ -241,6 +241,7 @@ FMResultSet *s = [db executeQuery:@"SELECT COUNT(*) FROM myTable"];
 if ([s next]) {
     int totalCount = [s intForColumnIndex:0];
 }
+[s close];  //  If you cannot confirm whether the result set is exhausted, you will need to call the -close method on the FMResultSet for safety.
 ```
 
 `FMResultSet` has many methods to retrieve data in an appropriate format: