9 PG_FUNCTION_INFO_V1(bool_to_plperl
);
12 bool_to_plperl(PG_FUNCTION_ARGS
)
15 bool in
= PG_GETARG_BOOL(0);
17 return PointerGetDatum(in
? &PL_sv_yes
: &PL_sv_no
);
21 PG_FUNCTION_INFO_V1(plperl_to_bool
);
24 plperl_to_bool(PG_FUNCTION_ARGS
)
27 SV
*in
= (SV
*) PG_GETARG_POINTER(0);
29 PG_RETURN_BOOL(SvTRUE(in
));