@@ -43,13 +43,14 @@ use crate::ast::{
4343 } ,
4444 ArgMode , AttachedToken , CommentDef , ConditionalStatements , CreateFunctionBody ,
4545 CreateFunctionUsing , CreateTableLikeKind , CreateTableOptions , CreateViewParams , DataType , Expr ,
46- FileFormat , FunctionBehavior , FunctionCalledOnNull , FunctionDesc , FunctionDeterminismSpecifier ,
47- FunctionParallel , FunctionSecurity , HiveDistributionStyle , HiveFormat , HiveIOFormat ,
48- HiveRowFormat , HiveSetLocation , Ident , InitializeKind , MySQLColumnPosition , ObjectName ,
49- OnCommit , OneOrManyWithParens , OperateFunctionArg , OrderByExpr , ProjectionSelect , Query ,
50- RefreshModeKind , RowAccessPolicy , SequenceOptions , Spanned , SqlOption ,
51- StorageSerializationPolicy , TableVersion , Tag , TriggerEvent , TriggerExecBody , TriggerObject ,
52- TriggerPeriod , TriggerReferencing , Value , ValueWithSpan , WrappedCollection ,
46+ FileFormat , FunctionBehavior , FunctionCalledOnNull , FunctionDefinitionSetParam , FunctionDesc ,
47+ FunctionDeterminismSpecifier , FunctionParallel , FunctionSecurity , HiveDistributionStyle ,
48+ HiveFormat , HiveIOFormat , HiveRowFormat , HiveSetLocation , Ident , InitializeKind ,
49+ MySQLColumnPosition , ObjectName , OnCommit , OneOrManyWithParens , OperateFunctionArg ,
50+ OrderByExpr , ProjectionSelect , Query , RefreshModeKind , RowAccessPolicy , SequenceOptions ,
51+ Spanned , SqlOption , StorageSerializationPolicy , TableVersion , Tag , TriggerEvent ,
52+ TriggerExecBody , TriggerObject , TriggerPeriod , TriggerReferencing , Value , ValueWithSpan ,
53+ WrappedCollection ,
5354} ;
5455use crate :: display_utils:: { DisplayCommaSeparated , Indent , NewLine , SpaceOrNewline } ;
5556use crate :: keywords:: Keyword ;
@@ -3221,6 +3222,10 @@ pub struct CreateFunction {
32213222 ///
32223223 /// [PostgreSQL](https://www.postgresql.org/docs/current/sql-createfunction.html)
32233224 pub security : Option < FunctionSecurity > ,
3225+ /// SET configuration_parameter clauses
3226+ ///
3227+ /// [PostgreSQL](https://www.postgresql.org/docs/current/sql-createfunction.html)
3228+ pub set_params : Vec < FunctionDefinitionSetParam > ,
32243229 /// USING ... (Hive only)
32253230 pub using : Option < CreateFunctionUsing > ,
32263231 /// Language used in a UDF definition.
@@ -3290,6 +3295,9 @@ impl fmt::Display for CreateFunction {
32903295 if let Some ( security) = & self . security {
32913296 write ! ( f, " {security}" ) ?;
32923297 }
3298+ for set_param in & self . set_params {
3299+ write ! ( f, " {set_param}" ) ?;
3300+ }
32933301 if let Some ( remote_connection) = & self . remote_connection {
32943302 write ! ( f, " REMOTE WITH CONNECTION {remote_connection}" ) ?;
32953303 }
0 commit comments