Skip to content

Commit 571009c

Browse files
committed
postgres tokenizer: do not silently ignore the character after a question mark if it is not one of the expected characters
1 parent 1b842d3 commit 571009c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tokenizer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,7 +1684,7 @@ impl<'a> Tokenizer<'a> {
16841684
}
16851685
}
16861686
Some('#') => self.consume_and_return(chars, Token::QuestionMarkSharp),
1687-
_ => self.consume_and_return(chars, Token::Question),
1687+
_ => Ok(Some(Token::Question)),
16881688
}
16891689
}
16901690
'?' => {

0 commit comments

Comments
 (0)