aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit/MCPFoundationKit
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/MCPKit/MCPFoundationKit')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m1
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPResult.m12
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m2
3 files changed, 8 insertions, 7 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index 19624652..f04fe226 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -105,6 +105,7 @@ static BOOL sTruncateLongFieldInLogs = YES;
queryCancelled = NO;
queryCancelUsedReconnect = NO;
serverVersionString = nil;
+ mTimeZone = nil;
// Initialize ivar defaults
connectionTimeout = 10;
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
index 4e3fef3a..be8a85eb 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
@@ -253,7 +253,7 @@ const OUR_CHARSET our_charsets60[] =
if (mNames) {
[mNames release];
- mNames = NULL;
+ mNames = nil;
}
mNumOfFields = 0;
@@ -280,7 +280,7 @@ const OUR_CHARSET our_charsets60[] =
if (mNames) {
[mNames release];
- mNames = NULL;
+ mNames = nil;
}
mResult = mysql_store_result(mySQLPtr);
@@ -315,7 +315,7 @@ const OUR_CHARSET our_charsets60[] =
if (mNames) {
[mNames release];
- mNames = NULL;
+ mNames = nil;
}
mResult = mySQLResPtr;
@@ -874,7 +874,7 @@ const OUR_CHARSET our_charsets60[] =
return (0);
}
- if (mNames == NULL) {
+ if (mNames == nil) {
[self fetchFieldNames];
}
@@ -959,7 +959,7 @@ const OUR_CHARSET our_charsets60[] =
return (NO);
}
- if (mNames == NULL) {
+ if (mNames == nil) {
[self fetchFieldNames];
}
@@ -1342,7 +1342,7 @@ const OUR_CHARSET our_charsets60[] =
- (void) dealloc
{
if (mResult) mysql_free_result(mResult);
- if (mNames) [mNames autorelease];
+ if (mNames) [mNames release];
if (mTimeZone) [mTimeZone release];
[super dealloc];
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m
index 58a8c3a6..624f132c 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPStreamingResult.m
@@ -83,7 +83,7 @@
if (mNames) {
[mNames release];
- mNames = NULL;
+ mNames = nil;
}
mResult = mysql_use_result(mySQLPtr);