فهرست منبع

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

Update example code for FMResultSet
August "Gus" Mueller 5 سال پیش
والد
کامیت
9ae08346d3
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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: