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:
authorccgus <gus@flyingmeat.com>2013-12-03 02:20:12 +0400
committerccgus <gus@flyingmeat.com>2013-12-03 02:20:12 +0400
commit2224f216e79096f92a8ce33b432bd8d75153afe2 (patch)
tree47b114efb2deb20da34b0a07610c45ac30110452
parent6f68545eb7856c9de60122e48db37e92a4d7b1f2 (diff)
if DEBUG is defined, then you'll get a little more info when you've got open result sets out when using the queue.
-rw-r--r--src/FMDatabaseQueue.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FMDatabaseQueue.m b/src/FMDatabaseQueue.m
index c302093..797a366 100644
--- a/src/FMDatabaseQueue.m
+++ b/src/FMDatabaseQueue.m
@@ -133,6 +133,14 @@
if ([db hasOpenResultSets]) {
NSLog(@"Warning: there is at least one open result set around after performing [FMDatabaseQueue inDatabase:]");
+
+#ifdef DEBUG
+ NSSet *openSetCopy = FMDBReturnAutoreleased([[db valueForKey:@"_openResultSets"] copy]);
+ for (NSValue *rsInWrappedInATastyValueMeal in openSetCopy) {
+ FMResultSet *rs = (FMResultSet *)[rsInWrappedInATastyValueMeal pointerValue];
+ NSLog(@"query: '%@'", [rs query]);
+ }
+#endif
}
});