aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-23 16:42:47 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-23 16:42:47 +0000
commit71f121cfdc7593759289f2e6ae6990958d8d224f (patch)
treeb1ae87bfb9af3b15fd06aceeab0ec828637e2388
parentc48f87ecb8cfe3774107a755c12aed5be5a1a46b (diff)
downloadsequelpro-71f121cfdc7593759289f2e6ae6990958d8d224f.tar.gz
sequelpro-71f121cfdc7593759289f2e6ae6990958d8d224f.tar.bz2
sequelpro-71f121cfdc7593759289f2e6ae6990958d8d224f.zip
• corrected switch() {} syntax
- this fixes issue 841
-rw-r--r--Source/SPTableTriggers.m11
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];