aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-05-13 00:56:36 +0000
committermtvee <emptyvee@gmail.com>2009-05-13 00:56:36 +0000
commit12b84cb69a904fb6ea714ab6d4b0b885f4d54436 (patch)
tree8e0df64c75a9300f375960d1c2dfcfd90e4d9959 /Source/CustomQuery.m
parent35e6aaac3997475a04984b09fac24ab02574ab27 (diff)
downloadsequelpro-12b84cb69a904fb6ea714ab6d4b0b885f4d54436.tar.gz
sequelpro-12b84cb69a904fb6ea714ab6d4b0b885f4d54436.tar.bz2
sequelpro-12b84cb69a904fb6ea714ab6d4b0b885f4d54436.zip
- added ability to view function and procedures and preliminary ability to input same via the editor
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index 579f8c3e..a2cc0b9a 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -61,7 +61,7 @@
// Retrieve the custom query string and split it into separate SQL queries
queryParser = [[SPSQLParser alloc] initWithString:[textView string]];
- queries = [queryParser splitStringByCharacter:';'];
+ queries = [queryParser parseQueries];
[queryParser release];
NSRange curRange = [textView selectedRange];
@@ -110,7 +110,7 @@
// Otherwise, run the selected text.
} else {
queryParser = [[SPSQLParser alloc] initWithString:[[textView string] substringWithRange:selectedRange]];
- queries = [queryParser splitStringByCharacter:';'];
+ queries = [queryParser parseQueries];
[queryParser release];
}