postgres tokenizer: do not silently ignore the character after a question mark if it is not one of the expected characters

This commit is contained in:
jnlt3 2025-12-08 15:01:53 +03:00
parent d78dbc97a1
commit d95cef054b

View file

@ -1717,7 +1717,7 @@ impl<'a> Tokenizer<'a> {
}
}
Some('#') => self.consume_and_return(chars, Token::QuestionMarkSharp),
_ => self.consume_and_return(chars, Token::Question),
_ => Ok(Some(Token::Question)),
}
}
'?' => {