mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-12 06:52:02 +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
|
@ -3945,6 +3945,7 @@ pub enum Statement {
|
|||
or_alter: bool,
|
||||
name: ObjectName,
|
||||
params: Option<Vec<ProcedureParam>>,
|
||||
language: Option<Ident>,
|
||||
body: ConditionalStatements,
|
||||
},
|
||||
/// ```sql
|
||||
|
@ -4848,6 +4849,7 @@ impl fmt::Display for Statement {
|
|||
name,
|
||||
or_alter,
|
||||
params,
|
||||
language,
|
||||
body,
|
||||
} => {
|
||||
write!(
|
||||
|
@ -4863,6 +4865,10 @@ impl fmt::Display for Statement {
|
|||
}
|
||||
}
|
||||
|
||||
if let Some(language) = language {
|
||||
write!(f, " LANGUAGE {language}")?;
|
||||
}
|
||||
|
||||
write!(f, " AS {body}")
|
||||
}
|
||||
Statement::CreateMacro {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue