bugfix: fix DEFINE .. TYPE parsing in parser 2 (#3765)

This commit is contained in:
Raphael Darley 2024-03-26 10:44:29 +00:00 committed by GitHub
parent e696175775
commit 5bf82abd7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -800,12 +800,12 @@ impl Parser<'_> {
};
loop {
match self.peek_kind() {
t!("FROM") => {
t!("FROM") | t!("IN") => {
self.pop_peek();
let from = self.parse_tables()?;
res.from = Some(from);
}
t!("TO") => {
t!("TO") | t!("OUT") => {
self.pop_peek();
let to = self.parse_tables()?;
res.to = Some(to);