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/TableDump.m | |
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/TableDump.m')
-rw-r--r-- | Source/TableDump.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m index 2d9b60ca..2fe99121 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -453,8 +453,8 @@ [singleProgressBar startAnimation:self]; //get array with an object for each mysql-query - queries = [dumpFile splitStringByCharacter:';']; - + queries = [dumpFile splitSqlStringByCharacter:';']; + [singleProgressBar stopAnimation:self]; [singleProgressBar setUsesThreadedAnimation:NO]; [singleProgressBar setIndeterminate:NO]; |