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


##########
tests/sqlparser_postgres.rs:
##########
@@ -7492,3 +7492,20 @@ fn parse_create_operator_class() {
         )
         .is_err());
 }
+
+#[test]
+fn tokenize_question_mark() {
+    let sql = "SELECT x ? y";
+    pg().tokenizes_to(
+        sql,
+        vec![
+            Token::make_keyword("SELECT"),
+            Token::Whitespace(Whitespace::Space),
+            Token::make_word("x", None),
+            Token::Whitespace(Whitespace::Space),
+            Token::Question,
+            Token::Whitespace(Whitespace::Space),
+            Token::make_word("y", None),
+        ],
+    )
+}

Review Comment:
   I thnk the test can live in tokenizer.rs instead since its covering 
tokenizer specific behavior



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