diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-04 14:11:55 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-04 14:11:55 +0000 |
commit | fa3a82bd89eee142c575e13e47eb6a7bd5e1fc89 (patch) | |
tree | ee2536c1bafc17235d0d9d68ed5df3e100236319 /Source/CustomQuery.h | |
parent | f3e421d2e4ba9ec54878968c34044dce89dc6f09 (diff) | |
download | sequelpro-fa3a82bd89eee142c575e13e47eb6a7bd5e1fc89.tar.gz sequelpro-fa3a82bd89eee142c575e13e47eb6a7bd5e1fc89.tar.bz2 sequelpro-fa3a82bd89eee142c575e13e47eb6a7bd5e1fc89.zip |
• added support for the “delimiter” command
- added
(NSArray *) splitSqlStringByCharacter:(unichar)character;
(NSArray *) splitSqlStringIntoRangesByCharacter:(unichar)character;
(long) firstOccurrenceInSqlOfCharacter:
to the SQLParser which recognize a “delimiter” command
• queryAtPosition now works with ranges to speed it up
- the current query ranges resp. the just activated query range are cached in order to avoid parsing if the user only navigates through the textView buffer, or if the user calls Run Prev/Current Query only
• the "import dump" function makes usage of that new “delimiter” support
- i.e. dumps with procs/funcs declaration could be imported
IMPORTANT: Please check the new SQLParser exhaustively in order to prove that new approach
Diffstat (limited to 'Source/CustomQuery.h')
-rw-r--r-- | Source/CustomQuery.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CustomQuery.h b/Source/CustomQuery.h index 39b405f5..9c4e1a1e 100644 --- a/Source/CustomQuery.h +++ b/Source/CustomQuery.h @@ -78,6 +78,8 @@ CMMCPConnection *mySQLConnection; NSString *usedQuery; + NSRange currentQueryRange; + NSArray *currentQueryRanges; NSString *mySQLversion; int queryStartPosition; |