From: | Sam Barnett-Cormack <s(dot)barnett-cormack(at)lancaster(dot)ac(dot)uk> |
---|---|
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:26:39 |
Message-ID: | Pine.LNX.4.50.0402062126190.22880-100000@short.lancs.ac.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Truncate it in the applications? Create an SQL function with pg-perl or
something?
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 ?
>
> I'm using Postgresql 7.2.2.
>
> Thanks in advance.
>
> TOm
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
--
Sam Barnett-Cormack
Software Developer | Student of Physics & Maths
UK Mirror Service (http://www.mirror.ac.uk) | Lancaster University
From | Date | Subject | |
---|---|---|---|
Next Message | scott.marlowe | 2004-02-06 21:26:49 | Re: talking to port 5432 |
Previous Message | scott.marlowe | 2004-02-06 21:22:46 | Re: Problem with too short column |