Re: Rollback when value too long

From: Alexander Litvinov <lan(at)ac-sw(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Rollback when value too long
Date: 2003-05-16 12:03:07
Message-ID: 200305161903.07154.lan@ac-sw.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Check the length of data before saving it and truncate if needed.

> Some tables where directly updated from web forms, so when the input
> is longer than the fileld, Postgres forces a rollback. This might be
> right, but is very angry for me. Is there a way to teach Postgres
> that it must truncate these values?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nigel J. Andrews 2003-05-16 12:03:32 Re: Rollback when value too long
Previous Message Bartlomiej Frackiewicz 2003-05-16 11:46:50 Rollback when value too long