> tt=> create table test (a int4, b bit2);
> CREATE
> tt=> CREATE FUNCTION mytrig () RETURNS opaque AS
> '
> tt-> '
> tt'> DECLARE
> tt'> def_state CONSTANT BIT2 := 'b0001'::BIT2;
> tt'> BEGIN
> tt'> new.b = def_state;
> tt'> RETURN new;
> tt'> END;
> tt'> ' LANGUAGE 'plpgsql';
> ERROR: pa
I have my marvelous bit type working now, and now I find out I cannot
use it in PL scripts.
tt=> create table test (a int4, b bit2);
CREATE
tt=> CREATE FUNCTION mytrig () RETURNS opaque AS
'
tt-> '
tt'> DECLARE
tt'> def_state CONSTANT BIT2 := 'b0001'::BIT2;
tt'> BEGIN
tt'> new.b = def_state;