mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Add test case for the tokenizer consuming the character following a question mark
This commit is contained in:
parent
d95cef054b
commit
1e2be127da
1 changed files with 17 additions and 0 deletions
|
|
@ -7914,3 +7914,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),
|
||||
],
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue