diff options
Diffstat (limited to 'Source/SPTableTriggers.m')
-rw-r--r-- | Source/SPTableTriggers.m | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Source/SPTableTriggers.m b/Source/SPTableTriggers.m index dfded203..4a33b729 100644 --- a/Source/SPTableTriggers.m +++ b/Source/SPTableTriggers.m @@ -173,9 +173,14 @@ NSString *triggerActionTime = ([triggerActionTimePopUpButton indexOfSelectedItem]) ? @"AFTER" : @"BEFORE"; NSString *triggerEvent = @""; switch([triggerEventPopUpButton indexOfSelectedItem]) { - case 0: triggerEvent = @"INSERT"; - case 1: triggerEvent = @"UPDATE"; - case 2: triggerEvent = @"DELETE"; + case 0: + triggerEvent = @"INSERT"; + break; + case 1: + triggerEvent = @"UPDATE"; + break; + case 2:triggerEvent = @"DELETE"; + break; } NSString *triggerStatement = [triggerStatementTextView string]; |