diff options
Diffstat (limited to 'Frameworks/PostgresKit/Source')
-rw-r--r-- | Frameworks/PostgresKit/Source/PGPostgresResult.m | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Frameworks/PostgresKit/Source/PGPostgresResult.m b/Frameworks/PostgresKit/Source/PGPostgresResult.m index 1bf1db06..cd62f17e 100644 --- a/Frameworks/PostgresKit/Source/PGPostgresResult.m +++ b/Frameworks/PostgresKit/Source/PGPostgresResult.m @@ -290,6 +290,29 @@ } #pragma mark - +#pragma mark Other + +- (NSString *)description +{ + NSMutableString *description = [[[NSMutableString alloc] init] autorelease]; + + if (![self numberOfRows]) return @""; + + PGPostgresResultRowType rowType = _defaultRowType; + + [self setDefaultRowType:PGPostgresResultRowAsDictionary]; + + for (NSDictionary *row in self) + { + [description appendString:[row description]]; + } + + [self setDefaultRowType:rowType]; + + return description; +} + +#pragma mark - -(void)dealloc { |