aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/PostgresKit/Source/FLXPostgresResult.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-09-12 12:19:31 +0000
committerstuconnolly <stuart02@gmail.com>2012-09-12 12:19:31 +0000
commit8b298de8d7ef2c680974b5c5cebb4b0056969984 (patch)
tree6e6721b2e6c5628743e953047549d5b9e909ffa8 /Frameworks/PostgresKit/Source/FLXPostgresResult.m
parent4bac2aa3a2feb2c7eda3064e070cac005e7fa256 (diff)
downloadsequelpro-8b298de8d7ef2c680974b5c5cebb4b0056969984.tar.gz
sequelpro-8b298de8d7ef2c680974b5c5cebb4b0056969984.tar.bz2
sequelpro-8b298de8d7ef2c680974b5c5cebb4b0056969984.zip
Fix release build warnings.
Diffstat (limited to 'Frameworks/PostgresKit/Source/FLXPostgresResult.m')
-rw-r--r--Frameworks/PostgresKit/Source/FLXPostgresResult.m12
1 files changed, 5 insertions, 7 deletions
diff --git a/Frameworks/PostgresKit/Source/FLXPostgresResult.m b/Frameworks/PostgresKit/Source/FLXPostgresResult.m
index 9fd44d8c..57a26268 100644
--- a/Frameworks/PostgresKit/Source/FLXPostgresResult.m
+++ b/Frameworks/PostgresKit/Source/FLXPostgresResult.m
@@ -25,8 +25,6 @@
#import "FLXPostgresConnection.h"
#import "FLXPostgresConnectionTypeHandling.h"
-static NSString *FLXPostgresResultError = @"FLXPostgresResultError";
-
@interface FLXPostgresResult ()
- (void)_populateFields;
@@ -178,7 +176,7 @@ static NSString *FLXPostgresResultError = @"FLXPostgresResultError";
for (NSUInteger i = 0; i < _numberOfFields; i++)
{
- const char *bytes = PQfname(_result, i);
+ const char *bytes = PQfname(_result, (int)i);
if (!bytes) continue;
@@ -199,9 +197,9 @@ static NSString *FLXPostgresResultError = @"FLXPostgresResultError";
if (row >= _numberOfRows || column >= _numberOfFields) return nil;
// Check for null
- if (PQgetisnull(_result, row, column)) return [NSNull null];
+ if (PQgetisnull(_result, (int)row, (int)column)) return [NSNull null];
- FLXPostgresOid type = PQftype(_result, column);
+ FLXPostgresOid type = PQftype(_result, (int)column);
// Get handler for this type
id <FLXPostgresTypeHandlerProtocol> handler = [self _typeHandlerForColumn:column withType:type];
@@ -209,8 +207,8 @@ static NSString *FLXPostgresResultError = @"FLXPostgresResultError";
if (!handler) {
NSLog(@"PostgresKit: Warning: No type handler found for type %d, return NSData.", type);
- const void *bytes = PQgetvalue(_result, row, column);
- NSUInteger length = PQgetlength(_result, row, column);
+ const void *bytes = PQgetvalue(_result, (int)row, (int)column);
+ NSUInteger length = PQgetlength(_result, (int)row, (int)column);
if (!bytes || !length) return nil;