aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-16 09:41:37 +0000
committerrowanbeentje <rowan@beent.je>2012-03-16 09:41:37 +0000
commiteab6df4de773259f90dd5a1d25e44ca4d2765bbf (patch)
treeab9227a861da4d8865479d1b0f7f0b601ef87f72 /Source/SPTableData.m
parentd4baea934555c1b58eba34db68712fdb67c7871f (diff)
downloadsequelpro-eab6df4de773259f90dd5a1d25e44ca4d2765bbf.tar.gz
sequelpro-eab6df4de773259f90dd5a1d25e44ca4d2765bbf.tar.bz2
sequelpro-eab6df4de773259f90dd5a1d25e44ca4d2765bbf.zip
- Fix a bug in the SPMySQL integration branch causing the table triggers list never to be initialised - 10.7 magically fixed this and worked, but 10.6 didn't show any triggers. Thanks to schlabberdog for spotting and diagnosing this issue!
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 582ad9d2..0c0814d6 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -166,7 +166,7 @@
}
}
- return (NSArray *)triggers;
+ return triggers;
}
/**
@@ -1060,8 +1060,8 @@
return NO;
}
- [triggers removeAllObjects];
- [triggers addObjectsFromArray:[theResult getAllRows]];
+ if (triggers) [triggers release];
+ triggers = [[NSArray alloc] initWithArray:[theResult getAllRows]];
if (changeEncoding) [mySQLConnection restoreStoredEncoding];