We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d95cef0 commit 1e2be12Copy full SHA for 1e2be12
1 file changed
tests/sqlparser_postgres.rs
@@ -7914,3 +7914,20 @@ fn parse_create_operator_class() {
7914
)
7915
.is_err());
7916
}
7917
+
7918
+#[test]
7919
+fn tokenize_question_mark() {
7920
+ let sql = "SELECT x ? y";
7921
+ pg().tokenizes_to(
7922
+ sql,
7923
+ vec![
7924
+ Token::make_keyword("SELECT"),
7925
+ Token::Whitespace(Whitespace::Space),
7926
+ Token::make_word("x", None),
7927
7928
+ Token::Question,
7929
7930
+ Token::make_word("y", None),
7931
+ ],
7932
+ )
7933
+}
0 commit comments