From 8be8b3c61449336882a7af87c6d328399006797f Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 22 Apr 2009 14:29:57 +0000 Subject: =?UTF-8?q?=E2=80=A2=20CHANGED:=20if=20an=20error=20occurs=20in=20?= =?UTF-8?q?a=20series=20of=20queries=20the=20user=20will=20be=20asked=20to?= =?UTF-8?q?=20"Stop",=20"Continue"=20or=20"Run=20All"=20-=20Stop:=20the=20?= =?UTF-8?q?execution=20will=20stop=20at=20the=20erroneous=20query=20(if=20?= =?UTF-8?q?other=20queries=20would=20follow=20"Execution=20stopped!"=20wil?= =?UTF-8?q?l=20be=20prompted=20in=20the=20error=20message=20field)=20-=20C?= =?UTF-8?q?ontinue:=20continues=20the=20execution=20but=20shows=20that=20a?= =?UTF-8?q?lert=20for=20a=20next=20error=20-=20Run=20All:=20runs=20all=20f?= =?UTF-8?q?ollowing=20queries=20regardless=20of=20possible=20errors=20?= =?UTF-8?q?=E2=80=A2=20improved=20the=20error=20selection=20-=20fixed=20th?= =?UTF-8?q?e=20issue=20for=20Run=20Current/Previous=20(even=20for=20duplic?= =?UTF-8?q?ates)=20-=20if=20no=20error=20line=20is=20given=20it=20selects?= =?UTF-8?q?=20the=20first=20query=20which=20caused=20an=20error=20entirely?= =?UTF-8?q?=20-=20due=20to=20the=20localization=20of=20mysql=20error=20mes?= =?UTF-8?q?sages=20changed=20the=20regexps=20for=20catching=20the:=20--=20?= =?UTF-8?q?line=20number=20to=20/([0-9]+)$/=20because=20the=20line=20numbe?= =?UTF-8?q?r=20always=20should=20be=20outputted=20at=20the=20end=20--=20"n?= =?UTF-8?q?ear=20message"=20to=20/=20'(.*=3F)'=20/=20(important=20the=20la?= =?UTF-8?q?st=20space=20because=20after=20that=20space=20the=20line=20numb?= =?UTF-8?q?er=20will=20be=20outputted)=20--=20further=20checks=20are=20nee?= =?UTF-8?q?ded?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/CustomQuery.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/CustomQuery.h') 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; -- cgit v1.2.3