aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableTriggers.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-11-08 00:39:04 +0000
committerrowanbeentje <rowan@beent.je>2012-11-08 00:39:04 +0000
commita5ba7a6eb22f045385267214677cf29c563680fa (patch)
treed31bd431e53d436f935749845a0935806882a278 /Source/SPTableTriggers.h
parentbd51b74145153281edddbc6f2f5d165b3249dc41 (diff)
downloadsequelpro-a5ba7a6eb22f045385267214677cf29c563680fa.tar.gz
sequelpro-a5ba7a6eb22f045385267214677cf29c563680fa.tar.bz2
sequelpro-a5ba7a6eb22f045385267214677cf29c563680fa.zip
- Improve trigger adding and editing, re-opening the add/edit trigger window if a trigger can't be saved so that new statements can be fixed
- Fix editing of triggres failing when some MySQL versions append nul bytes to the statement results - Retain the edited trigger details to fix crashes on 10.8
Diffstat (limited to 'Source/SPTableTriggers.h')
-rw-r--r--Source/SPTableTriggers.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/SPTableTriggers.h b/Source/SPTableTriggers.h
index 1426fcbd..7b9c86a8 100644
--- a/Source/SPTableTriggers.h
+++ b/Source/SPTableTriggers.h
@@ -62,12 +62,8 @@
BOOL isEdit;
- // Cache vars
- NSString *editTriggerName;
- NSString *editTriggerEvent;
- NSString *editTriggerTableName;
- NSString *editTriggerStatement;
- NSString *editTriggerActionTime;
+ // Store a previously edited trigger for backup/cache
+ NSDictionary *editedTrigger;
}
@property (readwrite, assign) SPMySQLConnection *connection;