From e8bf8bf422b83a55cefd1bdf149f380a822eb880 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 7 Sep 2012 09:57:31 +0000 Subject: Remove object quoting and keep track of data type support. --- .../Source/FLXPostgresConnectionQueryPreparation.m | 23 ---------------------- 1 file changed, 23 deletions(-) (limited to 'Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m') diff --git a/Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m b/Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m index d8bf59b7..679237d1 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m @@ -28,29 +28,6 @@ @implementation FLXPostgresConnection (FLXPostgresConnectionQueryPreparation) -/** - * Quotes the supplied object in accordance with it's data type. - * - * @param object The object to quote. - * - * @return A string representation of the quoted object. - */ -- (NSString *)quote:(NSObject *)object -{ - if (!object || [object isKindOfClass:[NSNull class]]) return @"NULL"; - - id handler = [self typeHandlerForClass:[object class]]; - - if (!handler) { - [FLXPostgresException raise:FLXPostgresConnectionErrorDomain - reason:[NSString stringWithFormat:@"Unsupported class '%@'", NSStringFromClass([object class])]]; - - return nil; - } - - return [handler quotedStringFromObject:object]; -} - /** * Creates a prepared statment from the supplied query. * -- cgit v1.2.3