aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableTriggers.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-20 00:45:37 +0000
committerrowanbeentje <rowan@beent.je>2010-07-20 00:45:37 +0000
commitf43bd95832a0a1bb4ef486f1980d4d3b5edaa4b8 (patch)
tree5e3b87aadb3c1d1cd69fd989e136f4264d84b800 /Source/SPTableTriggers.m
parent17c39170ace58e9169ad3b183793dba9af07dd21 (diff)
downloadsequelpro-f43bd95832a0a1bb4ef486f1980d4d3b5edaa4b8.tar.gz
sequelpro-f43bd95832a0a1bb4ef486f1980d4d3b5edaa4b8.tar.bz2
sequelpro-f43bd95832a0a1bb4ef486f1980d4d3b5edaa4b8.zip
Tweak table triggers loading to only proceed for MySQL > 5; this finishes the work started in r2201 and should address Issue #748.
Diffstat (limited to 'Source/SPTableTriggers.m')
-rw-r--r--Source/SPTableTriggers.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPTableTriggers.m b/Source/SPTableTriggers.m
index ed056347..8ae46400 100644
--- a/Source/SPTableTriggers.m
+++ b/Source/SPTableTriggers.m
@@ -559,7 +559,9 @@
[tableDataInstance updateTriggersForCurrentTable];
}
- NSArray *triggers = [tableDataInstance triggers];
+ NSArray *triggers = nil;
+ if ([connection serverMajorVersion] >= 5 && [connection serverMinorVersion] >= 0)
+ triggers = [tableDataInstance triggers];
for (NSDictionary *trigger in triggers)
{