aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-04-22 14:29:57 +0000
committerBibiko <bibiko@eva.mpg.de>2009-04-22 14:29:57 +0000
commit8be8b3c61449336882a7af87c6d328399006797f (patch)
tree78432b9c290d2c2f59e6339a9db4984b33e6703d /Source/CustomQuery.h
parentd5e51b0534dcfee112f41c4de47c96c229a516ba (diff)
downloadsequelpro-8be8b3c61449336882a7af87c6d328399006797f.tar.gz
sequelpro-8be8b3c61449336882a7af87c6d328399006797f.tar.bz2
sequelpro-8be8b3c61449336882a7af87c6d328399006797f.zip
• CHANGED: if an error occurs in a series of queries the user will be asked to "Stop", "Continue" or "Run All"
- Stop: the execution will stop at the erroneous query (if other queries would follow "Execution stopped!" will be prompted in the error message field) - Continue: continues the execution but shows that alert for a next error - Run All: runs all following queries regardless of possible errors • improved the error selection - fixed the issue for Run Current/Previous (even for duplicates) - if no error line is given it selects the first query which caused an error entirely - due to the localization of mysql error messages changed the regexps for catching the: -- line number to /([0-9]+)$/ because the line number always should be outputted at the end -- "near message" to / '(.*?)' / (important the last space because after that space the line number will be outputted) -- further checks are needed
Diffstat (limited to 'Source/CustomQuery.h')
-rw-r--r--Source/CustomQuery.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CustomQuery.h b/Source/CustomQuery.h
index 770a4257..42803215 100644
--- a/Source/CustomQuery.h
+++ b/Source/CustomQuery.h
@@ -64,6 +64,8 @@
CMMCPConnection *mySQLConnection;
NSString *usedQuery;
+
+ int queryStartPosition;
}
// IBAction methods
@@ -83,6 +85,8 @@
// Query actions
- (void)performQueries:(NSArray *)queries;
- (NSString *)queryAtPosition:(long)position lookBehind:(BOOL *)doLookBehind;
+- (NSRange)queryTextRangeAtPosition:(long)position lookBehind:(BOOL *)doLookBehind;
+- (NSRange)queryTextRangeForQuery:(int)anIndex startPosition:(long)position;
// Accessors
- (NSArray *)currentResult;