Re: BUG #2643: Auto trim on insert and update

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2643: Auto trim on insert and update
Дата
Msg-id 13107.1159140317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2643: Auto trim on insert and update  ("Gene Neely" <paul.neely@comcast.net>)
Список pgsql-bugs
"Gene Neely" <paul.neely@comcast.net> writes:
> I have found no way to automatically trim fields to the length of the
> varchar or char on inserts and updates.

Write an explicit cast to varchar(N) or whatever it is.

> Can this become a Configuration option???

No, because the behavior is required by the SQL standard.

            regards, tom lane

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

Предыдущее
От: Richard Troy
Дата:
Сообщение: Re: BUG #2648: I can not create table name with capital and
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2645: pg_restore crashes