diff options
-rw-r--r-- | Source/SPTableTriggers.m | 4 |
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) { |