Hi,

I'm not sure, but maybe you could use a trigger that truncates the data to
the required length.

Regards,
Thomas



On Fri, Nov 1, 2013 at 12:35 AM, Frank Ratzlow <ratz...@gmail.com> wrote:

> Hi @all,
>
> I'm integrating H2 for local tests to mock out a Sybase DB. If you define
> a column as CREATE TABLE xxx ( mycol VARCHAR(3) ) in Sybase and you insert
> "frank" it will truncate the string in the  DB to "fra" and _not_ throw an
> exception indicating a too long value. Is it possible to emulate the same
> behaviour in H2 as well? Right now it explodes if I insert the same (too
> long) values.
>
> TIA
>
> Frank
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to h2-database+unsubscr...@googlegroups.com.
> To post to this group, send email to h2-database@googlegroups.com.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to h2-database+unsubscr...@googlegroups.com.
To post to this group, send email to h2-database@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to