diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-23 16:42:47 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-23 16:42:47 +0000 |
commit | 71f121cfdc7593759289f2e6ae6990958d8d224f (patch) | |
tree | b1ae87bfb9af3b15fd06aceeab0ec828637e2388 | |
parent | c48f87ecb8cfe3774107a755c12aed5be5a1a46b (diff) | |
download | sequelpro-71f121cfdc7593759289f2e6ae6990958d8d224f.tar.gz sequelpro-71f121cfdc7593759289f2e6ae6990958d8d224f.tar.bz2 sequelpro-71f121cfdc7593759289f2e6ae6990958d8d224f.zip |
• corrected switch() {} syntax
- this fixes issue 841
-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]; |