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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Automatic truncation of character values & casting to the type of a column type
Дата
Msg-id 1935.1261063468@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Automatic truncation of character values & casting to the type of a column type  (Justin Bailey <jgbailey@gmail.com>)
Ответы Re: Automatic truncation of character values & casting to the type of a column type
Список pgsql-general
Justin Bailey <jgbailey@gmail.com> writes:
> On Wed, Dec 16, 2009 at 7:20 PM, Tom Lane <tgl@sss.pgh.pa.us> 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

В списке pgsql-general по дате отправления:

Предыдущее
От: Justin Bailey
Дата:
Сообщение: Re: Automatic truncation of character values & casting to the type of a column type
Следующее
От: Vincenzo Romano
Дата:
Сообщение: Re: Table Partitioning Advice Request