andygrove commented on code in PR #2964:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2964#discussion_r4620476134
##########
src/tokenizer.rs:
##########
@@ -1282,6 +1285,82 @@ impl<'a> Tokenizer<'a> {
chars: &mut State,
prev_token: Option<&Token>,
prev_non_ws_token: Option<&Token>,
+ ) -> Result<Option<Token>, TokenizerError> {
+ let mut buf;
+ let name = match chars.peek() {
+ Some(&ch) if self.dialect.is_custom_operator_part(ch) => {
+ buf = [0u8; 4 * MAX_OPERATOR_NAME_CHARS];
Review Comment:
What happens if the operator is longer than this? Postgres throws an
"operator too long" exception.
--
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]