Re: Why does this not work?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why does this not work?
Дата
Msg-id 10485.1018550706@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why does this not work?  ("Johann Zuschlag" <zuschlag@online.de>)
Ответы Re: Why does this not work? (finally)  ("Johann Zuschlag" <zuschlag@online.de>)
Список pgsql-general
"Johann Zuschlag" <zuschlag@online.de> writes:
>> The value is being coerced into the type before your trigger
>> runs to be put into the values you're testing and it fails
>> at that point.

> Is there a solution for such a problem?

Don't use varchar(n) --- use text.  You can still enforce the length
limit you want inside the trigger, if you really want a length limit
at all.

            regards, tom lane

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

Предыдущее
От: "Marin Dimitrov"
Дата:
Сообщение: Re: Why does this not work?
Следующее
От: Fran Fabrizio
Дата:
Сообщение: Re: where to find info about data types?