Hi all, 

The size of my string column  is too small, and I would like to truncation 
my too long string to be fit the size of column.

I know how to do it in SQL, as below doc: 
http://www.postgresql.org/docs/9.1/interactive/datatype-character.html

But I can't find how to do in JOOQ. 

Very thanks!


-Pay

INSERT INTO test2 VALUES ('too long');ERROR:  value too long for type character 
varying(5)
INSERT INTO test2 VALUES ('too long'::varchar(5)); -- explicit truncation

Reply via email to