mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Add support for LANGUAGE
clause in CREATE PROCEDURE
(#1903)
This commit is contained in:
parent
1bbc05cdff
commit
95d16e3b2d
4 changed files with 46 additions and 1 deletions
|
@ -15802,6 +15802,13 @@ impl<'a> Parser<'a> {
|
|||
pub fn parse_create_procedure(&mut self, or_alter: bool) -> Result<Statement, ParserError> {
|
||||
let name = self.parse_object_name(false)?;
|
||||
let params = self.parse_optional_procedure_parameters()?;
|
||||
|
||||
let language = if self.parse_keyword(Keyword::LANGUAGE) {
|
||||
Some(self.parse_identifier()?)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
self.expect_keyword_is(Keyword::AS)?;
|
||||
|
||||
let body = self.parse_conditional_statements(&[Keyword::END])?;
|
||||
|
@ -15810,6 +15817,7 @@ impl<'a> Parser<'a> {
|
|||
name,
|
||||
or_alter,
|
||||
params,
|
||||
language,
|
||||
body,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue