Re: Why does this not work?

Поиск
Список
Период
Сортировка
От Johann Zuschlag
Тема Re: Why does this not work?
Дата
Msg-id E16vixl-0004qc-00@mrvdom00.kundenserver.de
обсуждение исходный текст
Ответ на Re: Why does this not work?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Ответы Re: Why does this not work?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Why does this not work?  (Jan Wieck <janwieck@yahoo.com>)
Список pgsql-general
On Thu, 11 Apr 2002 10:54:42 -0700 (PDT), Stephan Szabo wrote:

>> -- Trigger: laenge_trig ON test
>> CREATE TRIGGER "laenge_trig" BEFORE INSERT OR UPDATE ON "test" FOR
>> EACH ROW EXECUTE PROCEDURE laenge();
>>
>> insert into test (test1) values  ('0123456789012');
>>
>> value too long for type character varying(10)
>
>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?
Let's assume you can't be sure whether you get
the appropriate length in an insert.

Thanks for your help,

regards

Johann Zuschlag
zuschlag@online.de



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: SPI_execp() failed in RI_FKey_cascade_del()
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: "NOT IN" predicate hangs result