I have a char(13)
column named a
in table test
.
I created a classic before insert function with the following line :
raise notice 'a: -->%<-- len = %', new.a, length(new.a);
When I run insert into test (a) values('1');
, I get the following output :
a: -->1 <-- len = 1
Strange, no ?