aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2009-04-11 09:14:42 +0000
committerbamse16 <marius@marius.me.uk>2009-04-11 09:14:42 +0000
commit1824ae6360c9ce1897e75404163d39df08ee5fbf (patch)
tree0eca1f6f4cb42e08f25e44a4683aecfb5881aac2 /Source/CustomQuery.m
parent41f8cde09ff77996339cabc71517496976beee2e (diff)
downloadsequelpro-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.m10
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];
}