aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-07 09:57:31 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-07 09:57:31 +0000
commite8bf8bf422b83a55cefd1bdf149f380a822eb880 (patch)
tree6c9b5114ca6be1aebb28e212352599018e4115a7 /Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m
parent1a20cd03f29b0c0ee842008b1445ba54ad23dc69 (diff)
downloadsequelpro-e8bf8bf422b83a55cefd1bdf149f380a822eb880.tar.gz
sequelpro-e8bf8bf422b83a55cefd1bdf149f380a822eb880.tar.bz2
sequelpro-e8bf8bf422b83a55cefd1bdf149f380a822eb880.zip
Remove object quoting and keep track of data type support.
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m')
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresConnectionQueryPreparation.m23
1 files changed, 0 insertions, 23 deletions
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
@@ -29,29 +29,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 <FLXPostgresTypeHandlerProtocol> 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.
*
* @param query The query to create the statement from.