Search Postgresql Archives

Re: Automatic truncation of character values & casting to the type of a column type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Justin Bailey <jgbailey@xxxxxxxxx> writes:
> On Wed, Dec 16, 2009 at 7:20 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
>> Really?  Works for me, in everything back to 7.3.

> If s was automatically truncated, the insert would succeed, but it
> fails with a "value too long" error.

Oh, I thought the failure was the behavior you wanted.  There's
no automatic truncation here --- perhaps putting an exception
block around it would be the way to go?

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux