Inserting float with ',' instead of '.' using COPY statement

From: "Pier Paolo Bortone" <pierpaolo(dot)bortone(at)netengineering(dot)it>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Inserting float with ',' instead of '.' using COPY statement
Date: 2001-10-01 09:15:22
Message-ID: 007401c14a59$9b599a50$6100a8c0@netengineering.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
I'm a new user of postgresql. I haven't problem to install and execute postgresql 7.1.3 on my Linux 7.1.
But I don't able to insert a float number with comma separator for decimal, for example:

CREATE TABLE test (
field real
)

INSERT INTO test values ('2,5')\g

ERROR: bad float4 input format

if I write:
INSERT INTO test values ('2.5')\g then all works fine.

Can someone help me to configure postgresql to accept ITALIAN number format?

Thanks in advance at all.

Pier Paolo.

Browse pgsql-general by date

  From Date Subject
Next Message Tille, Andreas 2001-10-01 11:05:47 Re: Performance question (stripped down the problem)
Previous Message J C Lawrence 2001-10-01 08:36:48 GROUP BY with wildcard non-deterministic fields?