s5dsn-eqee commented on code in PR #2559:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2559#discussion_r4431344558
##########
src/tokenizer.rs:
##########
@@ -2158,6 +2163,65 @@ impl<'a> Tokenizer<'a> {
}
}
+ /// Scans a `$`, `@`, `:` or `#` variable with SQLite's tokenizer rules,
returning `None`
+ /// without consuming input when no name follows the prefix.
+ fn tokenize_sqlite_variable(&self, chars: &mut State) ->
Result<Option<Token>, TokenizerError> {
Review Comment:
What do you think about moving `tokenize_sqlite_variable` into
`SQLiteDialect` through a `Dialect` hook, so the tokenizer stays
dialect-agnostic?
Im plying with the same idea here #2694
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]