471,050 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,050 software developers and data experts.

ERROR: date/time field value out of range: "28/05/2004 02:15:57"

I'm runnig Redhat 7.3 with postgresql 7.3.4 builded from sources and
upgraded recently. I receive this error ( never received before upgrade
) and I don' t know what to do.

Error while executing the query; ERROR: date/time field value out of
range: "28/05/2004 02:15:57"

SQL = "insert into
kleweshp_pror(prcod_id,prdatord,prcodcli,prcodage, prcodlis,prcodval,prscocl1,prscocl2,prcodart,prqta ord,prprezzo,prdateva,prscont1,prscont2,prscont3,p rscont4,prcoddes,prconprg,prflgcon,prstaord)
values (1,'28/05/2004
02:15:57','14100001','','00001','EUR',0.00,0.00,'F 15012711 ',2.000,
48.60000,null,-40.00,-15.00,0.00,0.00,'001 ','','','P')"
In my log the message is :

ERROR: date/time field value out of range: "28/05/2004 02:15:57"
HINT: Perhaps you need a different "datestyle" setting.

I've tried change datestyle to Postgresql, European, and so, but nothing
happend.

Can you help me ?

Ciao, Samu.

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #1
2 14617

On 28/05/04, kaka (ka**@darpha.com) wrote:
I'm runnig Redhat 7.3 with postgresql 7.3.4 builded from sources and
upgraded recently. I receive this error ( never received before upgrade
) and I don' t know what to do.

Error while executing the query; ERROR: date/time field value out of
range: "28/05/2004 02:15:57"

SQL = "insert into
kleweshp_pror(prcod_id,prdatord,prcodcli,prcodage, prcodlis,prcodval,prscocl1,prscocl2,prcodart,prqta ord,prprezzo,prdateva,prscont1,prscont2,prscont3,p rscont4,prcoddes,prconprg,prflgcon,prstaord)
values (1,'28/05/2004
02:15:57','14100001','','00001','EUR',0.00,0.00,'F 15012711 ',2.000,
48.60000,null,-40.00,-15.00,0.00,0.00,'001 ','','','P')"

Looks like there is a return in your date data. Also, is it a date field
or a timestamp field? What happens if you insert '2004-05-28'?

Rory
--
Rory Campbell-Lange
<ro**@campbell-lange.net>
<www.campbell-lange.net>

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 23 '05 #2
On 28/05/04, kaka (ka**@darpha.com) wrote:
It' s not a return or so stupid problem. If I put 2004-05-28 It works
perfectly. I don't want date in this format! Rory Campbell-Lange ha scritto:
On 28/05/04, kaka (ka**@darpha.com) wrote:
Error while executing the query; ERROR: date/time field value out of
range: "28/05/2004 02:15:57"

SQL = "insert into
kleweshp_pror(prcod_id,prdatord,prcodcli,prcodag e,prcodlis,prcodval,prscocl1,prscocl2,prcodart,prq taord,prprezzo,prdateva,prscont1,prscont2,prscont3 ,prscont4,prcoddes,prconprg,prflgcon,prstaord)
values (1,'28/05/2004
02:15:57','14100001','','00001','EUR',0.00,0.00, 'F15012711 ',2.000,
48.60000,null,-40.00,-15.00,0.00,0.00,'001 ','','','P')"


What does \d kleweshp_pror say?
--
Rory Campbell-Lange
<ro**@campbell-lange.net>
<www.campbell-lange.net>

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Dürrenmatt | last post: by
3 posts views Thread by Marcia Gulesian | last post: by
1 post views Thread by Nick Nygaard | last post: by
6 posts views Thread by M Welinder | last post: by
8 posts views Thread by Rasmus Kromann-Larsen | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.