aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLTokenizer.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-05-19 19:53:26 +0000
committerBibiko <bibiko@eva.mpg.de>2009-05-19 19:53:26 +0000
commit641eeff363a2864456a985b246576bfd5d41b144 (patch)
treebe9353ad60b0c282cf0a2014a78ab63e61b3101d /Source/SPSQLTokenizer.h
parent2ff722a0de334e4fc4df1dc6219734e85326637c (diff)
downloadsequelpro-641eeff363a2864456a985b246576bfd5d41b144.tar.gz
sequelpro-641eeff363a2864456a985b246576bfd5d41b144.tar.bz2
sequelpro-641eeff363a2864456a985b246576bfd5d41b144.zip
• implemented a new approach to split a string into single SQL statements by using the lexer SPTokenizer
- the new method is called splitStringIntoRangesOfSQLQueries: in SPSQLParser - in CustomQuery's method queryAtPosition: can be found a test case which is as default not activated - must be improved further
Diffstat (limited to 'Source/SPSQLTokenizer.h')
-rw-r--r--Source/SPSQLTokenizer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPSQLTokenizer.h b/Source/SPSQLTokenizer.h
index 90387acb..9a6fbc96 100644
--- a/Source/SPSQLTokenizer.h
+++ b/Source/SPSQLTokenizer.h
@@ -26,4 +26,5 @@
#define SP_SQL_TOKEN_DELIM_END 2
#define SP_SQL_TOKEN_SEMICOLON 3
#define SP_SQL_TOKEN_COMPOUND_END 4
-#define SP_SQL_TOKEN_IGNORE 5
+#define SP_SQL_TOKEN_SINGLE_LINE_COMMENT 5
+#define SP_SQL_TOKEN_IGNORE 6