Re: Problem with too short column

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: <Thomas(dot)AUBRY(at)limagrain(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Problem with too short column
Date: 2004-02-06 21:22:46
Message-ID: Pine.LNX.4.33.0402061421500.6661-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wed, 4 Feb 2004 Thomas(dot)AUBRY(at)limagrain(dot)com wrote:

> Hi,
>
> I actually try to insert varchar which length is higher than 32 in a column
> which type is varchar(32). I can't change the type of the column, and I
> want to trunc the data. I know it's possible ! I have seen this !
>
> Example : "j'aime les saucisses avec du beurre dedans" will be "j'aime les
> saucisses avec du beu". For the moment it produces a SQL Error !
>
> Is it an option in the config files ?

Note that in my previous posting I think I used substring with a 0 start,
it should start at 1:

select substring('abcdefgh',1,4);
SELECT
substring
----
abcd

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sam Barnett-Cormack 2004-02-06 21:26:39 Re: Problem with too short column
Previous Message scott.marlowe 2004-02-06 21:17:58 Re: Problem with too short column