Re: Why does this not work?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Johann Zuschlag" <zuschlag(at)online(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, "Stephan Szabo" <sszabo(at)megazone23(dot)bigpanda(dot)com>
Subject: Re: Why does this not work?
Date: 2002-04-11 18:45:06
Message-ID: 10485.1018550706@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Johann Zuschlag" <zuschlag(at)online(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jan Wieck 2002-04-11 18:53:01 Re: Why does this not work?
Previous Message Marin Dimitrov 2002-04-11 18:39:08 Re: Why does this not work?