Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ccgus/fmdb.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAugust "Gus" Mueller <gus@flyingmeat.com>2020-10-11 21:59:52 +0300
committerGitHub <noreply@github.com>2020-10-11 21:59:52 +0300
commit9ae08346d359da837b49eab0ec65b94ffefe3b15 (patch)
tree2b7eea558ddf7f530e3d4e98316f612f3d4b2b4e
parent2ca2cad644ae9d2bfc5584983b04807b09a443b2 (diff)
parent7f7ca2d685589527b581beb3b4dbb55fa30d57fc (diff)
Merge pull request #803 from Token-LiMing/patch-1
Update example code for FMResultSet
-rw-r--r--README.markdown1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index b943592..abf0cc5 100644
--- a/README.markdown
+++ b/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: