diff options
author | stuconnolly <stuart02@gmail.com> | 2012-09-26 02:45:14 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-09-26 02:45:14 +0000 |
commit | 9e0da1ad71ea178867a8d3419f80a46b42c32d4c (patch) | |
tree | 7d9db35a449f113b893bc720d1a1e2318756ccc0 /Frameworks/PostgresKit | |
parent | c1dabdff652fc32ce54b4d48c0d0f9b1e2824213 (diff) | |
download | sequelpro-9e0da1ad71ea178867a8d3419f80a46b42c32d4c.tar.gz sequelpro-9e0da1ad71ea178867a8d3419f80a46b42c32d4c.tar.bz2 sequelpro-9e0da1ad71ea178867a8d3419f80a46b42c32d4c.zip |
Comments.
Diffstat (limited to 'Frameworks/PostgresKit')
-rw-r--r-- | Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m index b3cc9fe3..a8fbc631 100644 --- a/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m +++ b/Frameworks/PostgresKit/Source/FLXPostgresTypeNumberHandler.m @@ -95,6 +95,11 @@ static FLXPostgresOid FLXPostgresTypeNumberTypes[] = #pragma mark - #pragma mark Integer +/** + * Converts an integer value to an NSNumber instance. + * + * @return An NSNumber representation of the the value. + */ - (id)_integerObjectFromResult { NSUInteger length = PQgetlength(_result, (int)_row, (int)_column); @@ -127,6 +132,11 @@ static FLXPostgresOid FLXPostgresTypeNumberTypes[] = #pragma mark - #pragma mark Floating Point +/** + * Converts a float value to an NSNumber instance. + * + * @return An NSNumber representation of the the value. + */ - (id)_floatObjectFromResult { NSUInteger length = PQgetlength(_result, (int)_row, (int)_column); @@ -154,6 +164,11 @@ static FLXPostgresOid FLXPostgresTypeNumberTypes[] = #pragma mark - #pragma mark Boolean +/** + * Converts a boolean value to an NSNumber instance. + * + * @return An NSNumber representation of the the value. + */ - (id)_booleanObjectFromResult { PGbool b; |