From: | Reid Thompson <Reid(dot)Thompson(at)ateb(dot)com> |
---|---|
To: | "bsreejithin(at)gmail(dot)com" <bsreejithin(at)gmail(dot)com> |
Cc: | Reid Thompson <Reid(dot)Thompson(at)ateb(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Junk date getting uploaded into date field |
Date: | 2013-11-05 14:22:37 |
Message-ID: | 1383661357.8970.25.camel@raker2.ateb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, 2013-11-05 at 04:14 -0800, bsreejithin wrote:
> Not able to post the attached details as a comment in the reply box, so
> attaching it as an image file :
> <http://postgresql.1045698.n5.nabble.com/file/n5776987/Untitled.png>
>
>
>
> --
> View this message in context: http://postgresql.1045698.n5.nabble.com/Junk-date-getting-uploaded-into-date-field-tp5776969p5776987.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>
to achieve what you want.... bdate needs to be defined as a date, not a
string.
test=# create table temptabl(bdate date);
CREATE TABLE
Time: 239.358 ms
test=# insert into temptabl values('33-OCT-2013');
ERROR: date/time field value out of range: "33-OCT-2013"
LINE 1: insert into temptabl values('33-OCT-2013');
^
HINT: Perhaps you need a different "datestyle" setting.
Time: 0.288 ms
test=#
From | Date | Subject | |
---|---|---|---|
Next Message | Jing Fan | 2013-11-05 14:37:53 | Re: WITH RECURSIVE doesn't work properly for me |
Previous Message | Albe Laurenz | 2013-11-05 13:29:11 | Re: Junk date getting uploaded into date field |