feat: Support TABLE keyword with SELECT INTO (#487)

This commit is contained in:
Alex Qyoun-ae 2022-05-09 22:29:43 +04:00 committed by GitHub
parent 6d057ef4df
commit 6b2fc8102f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 3 deletions

View file

@ -3138,10 +3138,12 @@ impl<'a> Parser<'a> {
.parse_one_of_keywords(&[Keyword::TEMP, Keyword::TEMPORARY])
.is_some();
let unlogged = self.parse_keyword(Keyword::UNLOGGED);
let table = self.parse_keyword(Keyword::TABLE);
let name = self.parse_object_name()?;
Some(SelectInto {
temporary,
unlogged,
table,
name,
})
} else {