The problem is the conversion of t
and f
to
I wrote a function in postgres to export boolean to PHP readable boolean:
You just use it this way:
SELECT php_bool(columna) from
table
Here is the function:
CREATE OR REPLACE FUNCTION php_bool(boolean)
RETURNS numeric LANGUAGE plpgsql
AS
$BODY$
BEGIN
IF $1 = true THEN
RETURN 1;
ELSE
RETURN 0;
END IF;
END
$BODY$