Commit graph

14 commits

Author SHA1 Message Date
eelke
0cd019db92 Fix for $-quoted strings
Note this does not solve all issues because we are tokenizing contents of strings of which we do not know they contains SQL
when the string is actually not SQL and contains $ the tokenizer gets confused.
2023-01-07 07:41:58 +01:00
eelke
8b671090a0 Big cleanup 2022-05-26 08:25:31 +02:00
eelke
423043d431 Qt6 migration 2021-03-06 13:13:31 +01:00
eelke
48ac8c6bab Improved generation of c/cpp string from query
Extra lines before and after query are removed. Whitespace at end of line
is removed. SQL comments are converted to cpp style comments and are outside
the string literal.

To achieve this the function now uses the SQLLexer to know what is comment.
This also required the additional capability in the lexer to also return whitespace and newline tokens.
Also a few bugs in the lexer were fixed.
2019-08-19 13:52:23 +02:00
eelke
3b482c1c73 Fix lexer for empty input. 2019-01-28 20:52:39 +01:00
eelke
880903db5f Several fixes of warnings/clang tidy 2018-12-16 15:38:32 +01:00
eelke
9e645db1a8 Fixed some small details the analyzer was complaining about. 2018-12-09 21:10:35 +01:00
eelke
5b20f900fc Sketched rough parser code construction including some SQL AST classes. 2018-06-19 19:52:56 +02:00
eelke
914d2fe9fa Lexical analyzer should now be less confused by dots and comma's and an assortment of other single character symbols. 2018-02-05 22:25:38 +01:00
eelke
b436814eb5 THe SqlLexer also now recognizes casts. 2018-01-06 21:18:28 +01:00
eelke
091040f13f Split big function in sql lexer into several functions. 2017-12-26 07:32:52 +01:00
eelke
bebb3391c3 Builds on windows again 2017-11-26 13:07:21 +01:00
Eelke Klein
7c4e8e95e8 Restructured locations of source. 2017-08-27 07:36:42 +02:00
eelke
d0ea9dfa0c Moved some parts to a static lib so both the executable and the tests can link to it.
Written additional tests.
2017-02-26 19:29:50 +01:00