@@ -4259,9 +4259,12 @@ $$"#;
42594259 behavior: None ,
42604260 called_on_null: None ,
42614261 parallel: None ,
4262- function_body: Some ( CreateFunctionBody :: AsBeforeOptions ( Expr :: Value (
4263- ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF str1 <> str2 THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4264- ) ) ) ,
4262+ function_body: Some ( CreateFunctionBody :: AsBeforeOptions {
4263+ body: Expr :: Value (
4264+ ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF str1 <> str2 THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4265+ ) ,
4266+ link_symbol: None ,
4267+ } ) ,
42654268 if_not_exists: false ,
42664269 using: None ,
42674270 determinism_specifier: None ,
@@ -4297,9 +4300,12 @@ $$"#;
42974300 behavior: None ,
42984301 called_on_null: None ,
42994302 parallel: None ,
4300- function_body: Some ( CreateFunctionBody :: AsBeforeOptions ( Expr :: Value (
4301- ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF int1 <> 0 THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4302- ) ) ) ,
4303+ function_body: Some ( CreateFunctionBody :: AsBeforeOptions {
4304+ body: Expr :: Value (
4305+ ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF int1 <> 0 THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4306+ ) ,
4307+ link_symbol: None ,
4308+ } ) ,
43034309 if_not_exists: false ,
43044310 using: None ,
43054311 determinism_specifier: None ,
@@ -4339,9 +4345,12 @@ $$"#;
43394345 behavior: None ,
43404346 called_on_null: None ,
43414347 parallel: None ,
4342- function_body: Some ( CreateFunctionBody :: AsBeforeOptions ( Expr :: Value (
4343- ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF a <> b THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4344- ) ) ) ,
4348+ function_body: Some ( CreateFunctionBody :: AsBeforeOptions {
4349+ body: Expr :: Value (
4350+ ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF a <> b THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4351+ ) ,
4352+ link_symbol: None ,
4353+ } ) ,
43454354 if_not_exists: false ,
43464355 using: None ,
43474356 determinism_specifier: None ,
@@ -4381,9 +4390,12 @@ $$"#;
43814390 behavior: None ,
43824391 called_on_null: None ,
43834392 parallel: None ,
4384- function_body: Some ( CreateFunctionBody :: AsBeforeOptions ( Expr :: Value (
4385- ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF int1 <> int2 THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4386- ) ) ) ,
4393+ function_body: Some ( CreateFunctionBody :: AsBeforeOptions {
4394+ body: Expr :: Value (
4395+ ( Value :: DollarQuotedString ( DollarQuotedString { value: "\n BEGIN\n IF int1 <> int2 THEN\n RETURN TRUE;\n ELSE\n RETURN FALSE;\n END IF;\n END;\n " . to_owned( ) , tag: None } ) ) . with_empty_span( )
4396+ ) ,
4397+ link_symbol: None ,
4398+ } ) ,
43874399 if_not_exists: false ,
43884400 using: None ,
43894401 determinism_specifier: None ,
@@ -4416,13 +4428,16 @@ $$"#;
44164428 behavior: None ,
44174429 called_on_null: None ,
44184430 parallel: None ,
4419- function_body: Some ( CreateFunctionBody :: AsBeforeOptions ( Expr :: Value (
4420- ( Value :: DollarQuotedString ( DollarQuotedString {
4421- value: "\n BEGIN\n RETURN TRUE;\n END;\n " . to_owned( ) ,
4422- tag: None
4423- } ) )
4424- . with_empty_span( )
4425- ) ) ) ,
4431+ function_body: Some ( CreateFunctionBody :: AsBeforeOptions {
4432+ body: Expr :: Value (
4433+ ( Value :: DollarQuotedString ( DollarQuotedString {
4434+ value: "\n BEGIN\n RETURN TRUE;\n END;\n " . to_owned( ) ,
4435+ tag: None
4436+ } ) )
4437+ . with_empty_span( )
4438+ ) ,
4439+ link_symbol: None ,
4440+ } ) ,
44264441 if_not_exists: false ,
44274442 using: None ,
44284443 determinism_specifier: None ,
@@ -4454,9 +4469,12 @@ fn parse_create_function() {
44544469 behavior: Some ( FunctionBehavior :: Immutable ) ,
44554470 called_on_null: Some ( FunctionCalledOnNull :: Strict ) ,
44564471 parallel: Some ( FunctionParallel :: Safe ) ,
4457- function_body: Some ( CreateFunctionBody :: AsBeforeOptions ( Expr :: Value (
4458- ( Value :: SingleQuotedString ( "select $1 + $2;" . into( ) ) ) . with_empty_span( )
4459- ) ) ) ,
4472+ function_body: Some ( CreateFunctionBody :: AsBeforeOptions {
4473+ body: Expr :: Value (
4474+ ( Value :: SingleQuotedString ( "select $1 + $2;" . into( ) ) ) . with_empty_span( )
4475+ ) ,
4476+ link_symbol: None ,
4477+ } ) ,
44604478 if_not_exists: false ,
44614479 using: None ,
44624480 determinism_specifier: None ,
@@ -4509,12 +4527,14 @@ fn parse_create_function_c_with_module_pathname() {
45094527 behavior: Some ( FunctionBehavior :: Immutable ) ,
45104528 called_on_null: None ,
45114529 parallel: Some ( FunctionParallel :: Safe ) ,
4512- function_body: Some ( CreateFunctionBody :: AsBeforeOptions ( Expr :: Tuple ( vec! [
4513- Expr :: Value (
4530+ function_body: Some ( CreateFunctionBody :: AsBeforeOptions {
4531+ body : Expr :: Value (
45144532 ( Value :: SingleQuotedString ( "MODULE_PATHNAME" . into( ) ) ) . with_empty_span( )
45154533 ) ,
4516- Expr :: Value ( ( Value :: SingleQuotedString ( "cas_in_wrapper" . into( ) ) ) . with_empty_span( ) ) ,
4517- ] ) ) ) ,
4534+ link_symbol: Some ( Expr :: Value (
4535+ ( Value :: SingleQuotedString ( "cas_in_wrapper" . into( ) ) ) . with_empty_span( )
4536+ ) ) ,
4537+ } ) ,
45184538 if_not_exists: false ,
45194539 using: None ,
45204540 determinism_specifier: None ,
@@ -6118,8 +6138,8 @@ fn parse_trigger_related_functions() {
61186138 args: Some ( vec![ ] ) ,
61196139 return_type: Some ( DataType :: Trigger ) ,
61206140 function_body: Some (
6121- CreateFunctionBody :: AsBeforeOptions (
6122- Expr :: Value ( (
6141+ CreateFunctionBody :: AsBeforeOptions {
6142+ body : Expr :: Value ( (
61236143 Value :: DollarQuotedString (
61246144 DollarQuotedString {
61256145 value: "\n BEGIN\n -- Check that empname and salary are given\n IF NEW.empname IS NULL THEN\n RAISE EXCEPTION 'empname cannot be null';\n END IF;\n IF NEW.salary IS NULL THEN\n RAISE EXCEPTION '% cannot have null salary', NEW.empname;\n END IF;\n \n -- Who works for us when they must pay for it?\n IF NEW.salary < 0 THEN\n RAISE EXCEPTION '% cannot have a negative salary', NEW.empname;\n END IF;\n \n -- Remember who changed the payroll when\n NEW.last_date := current_timestamp;\n NEW.last_user := current_user;\n RETURN NEW;\n END;\n " . to_owned( ) ,
@@ -6129,7 +6149,8 @@ fn parse_trigger_related_functions() {
61296149 } ,
61306150 )
61316151 ) . with_empty_span( ) ) ,
6132- ) ,
6152+ link_symbol: None ,
6153+ } ,
61336154 ) ,
61346155 behavior: None ,
61356156 called_on_null: None ,
0 commit comments