From 71f121cfdc7593759289f2e6ae6990958d8d224f Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 23 Sep 2010 16:42:47 +0000 Subject: =?UTF-8?q?=E2=80=A2=C2=A0corrected=20switch()=20{}=20syntax=20-?= =?UTF-8?q?=20this=20fixes=20issue=20841?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableTriggers.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Source') 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]; -- cgit v1.2.3