Wao writes:
> +Datum
> +bool_to_plperl(PG_FUNCTION_ARGS)
> +{
> + dTHX;
> + bool in = PG_GETARG_BOOL(0);
> + SV *sv = newSVnv(SvNV(in ? &PL_sv_yes : &PL_sv_no));
> + return PointerGetDatum(sv);
> +}
Why is this only copying the floating point part of the built-in
booleans be
On 2/29/20 4:55 PM, Ivan Panchenko wrote:
> Hi,
> While using PL/Perl I have found that it obtains boolean arguments
> from Postgres as ‘t’ and ‘f’, which is extremely inconvenient because
> ‘f’ is not false from the perl viewpoint.
> So the problem is how to convert the SQL booleans into Perl st
=?UTF-8?B?SXZhbiBQYW5jaGVua28=?= writes:
> While using PL/Perl I have found that it obtains boolean arguments from
> Postgres as ‘t’ and ‘f’, which is extremely inconvenient because ‘f’ is not
> false from the perl viewpoint.
> ...
> * make a transform which transforms bool, like it is done wit