iffyio commented on code in PR #1677:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1677#discussion_r1929721586


##########
src/tokenizer.rs:
##########
@@ -1147,7 +1147,11 @@ impl<'a> Tokenizer<'a> {
                         s.push('.');
                         chars.next();
                     }
-                    s += &peeking_take_while(chars, |ch| ch.is_ascii_digit());
+
+                    s += &peeking_take_while(chars, |ch| {
+                        ch.is_ascii_digit()
+                            || 
self.dialect.supports_numeric_literal_underscores() && ch == '_'

Review Comment:
   It could be worth having a test to demonstrate the behavior with a trailing 
underscore



-- 
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]

Reply via email to