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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Justin Bailey <jgbailey(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Automatic truncation of character values & casting to the type of a column type
Date: 2009-12-17 03:20:51
Message-ID: 21710.1261020051@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Justin Bailey <jgbailey(at)gmail(dot)com> writes:
> I have tried using the PL/PGSQL
> feature where types can be "copied" in a declaration:

> DECLARE
> myVal Short.shortCol%TYPE;

> But I can still put values which are too long into that variable, so
> it doesn't help me.

Really? Works for me, in everything back to 7.3.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sam Jas 2009-12-17 05:43:02 Fw: password authentication failed
Previous Message Craig Ringer 2009-12-17 02:12:35 Re: Server Requirements