diff options
author | bamse16 <marius@marius.me.uk> | 2009-04-11 09:14:42 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-04-11 09:14:42 +0000 |
commit | 1824ae6360c9ce1897e75404163d39df08ee5fbf (patch) | |
tree | 0eca1f6f4cb42e08f25e44a4683aecfb5881aac2 /Source/CustomQuery.m | |
parent | 41f8cde09ff77996339cabc71517496976beee2e (diff) | |
download | sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.tar.gz sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.tar.bz2 sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.zip |
Added printing support via WebKit WebView
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 05eed36f..ba9349f9 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -396,6 +396,10 @@ sets the tableView columns corresponding to the mysql-result } } + if(usedQuery) + [usedQuery release]; + usedQuery = [[NSString stringWithString:[queries componentsJoinedByString:@";\n"]] retain]; + //perform empty query if no query is given if ( [queries count] == 0 ) { theResult = [mySQLConnection queryString:@""]; @@ -668,6 +672,10 @@ inserts the query in the textView and performs query [self runAllQueries:self]; } +- (NSString *)usedQuery +{ + return usedQuery; +} #pragma mark - #pragma mark TableView datasource methods @@ -1062,6 +1070,7 @@ traps enter key and { self = [super init]; prefs = nil; + usedQuery = [[NSString stringWithString:@""] retain]; return self; } @@ -1070,6 +1079,7 @@ traps enter key and [queryResult release]; [prefs release]; [queryFavorites release]; + [usedQuery release]; [super dealloc]; } |