diff options
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 76c767d7..27f72b04 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -780,6 +780,16 @@ sets the tableView columns corresponding to the mysql-result // Split the current text into queries customQueryParser = [[SPSQLParser alloc] initWithString:[textView string]]; queries = [[NSArray alloc] initWithArray:[customQueryParser splitStringByCharacter:';']]; + + // ========= test case for SQL splitting into ranges == START + // NSArray *qs; int qc; + // qs = [[NSArray alloc] initWithArray:[customQueryParser splitStringIntoRangesOfSQLQueries]]; + // NSLog(@"---START---"); + // for(qc=0;qc<[qs count];qc++) { + // NSLog(@"%d:", qc); + // NSLog(@"%@", [[textView string] substringWithRange:NSRangeFromString([qs objectAtIndex:qc])]); + // } + // ========= test case for SQL splitting into ranges == END [customQueryParser release]; // Walk along the array of queries to identify the current query - taking into account |