mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-14 15:59:03 +00:00
Support EXECUTE ... USING
for Postgres (#1153)
This commit is contained in:
parent
9db9d22480
commit
68b52a4ad6
3 changed files with 52 additions and 4 deletions
|
@ -8948,7 +8948,20 @@ impl<'a> Parser<'a> {
|
|||
self.expect_token(&Token::RParen)?;
|
||||
}
|
||||
|
||||
Ok(Statement::Execute { name, parameters })
|
||||
let mut using = vec![];
|
||||
if self.parse_keyword(Keyword::USING) {
|
||||
using.push(self.parse_expr()?);
|
||||
|
||||
while self.consume_token(&Token::Comma) {
|
||||
using.push(self.parse_expr()?);
|
||||
}
|
||||
};
|
||||
|
||||
Ok(Statement::Execute {
|
||||
name,
|
||||
parameters,
|
||||
using,
|
||||
})
|
||||
}
|
||||
|
||||
pub fn parse_prepare(&mut self) -> Result<Statement, ParserError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue