From: Dave Cramer <pg@fastcrypt.com>
To: Kris Jurka <books@ejurka.com>
Cc: Jonathan Vallar <jonathan.vallar@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bad Value for Data Type Timestamp
Date: Tue, 28 Feb 2006 12:57:31 -0500
Message-ID: <76A61917-5AAB-4CFE-AE31-9E89DC126D08@fastcrypt.com> (raw)
In-Reply-To: <Pine.BSO.4.63.0602281200490.2638@leary.csoft.net>
References: <6c1017c20602280042i9f38cb2g17b6acf722349ef8@mail.gmail.com>
<3C5A526C-645D-41A0-B461-99F2F259393F@fastcrypt.com>
<6c1017c20602280255q5d636ef2vbb484808d4399ea3@mail.gmail.com>
<E6920CFA-9CCD-4FE5-BC60-8B2B07574899@fastcrypt.com>
<Pine.BSO.4.63.0602281200490.2638@leary.csoft.net>
Hmmmm.... that's strange. This must be in the output format, or some
other error.
Internally timestamps are stored as seconds. Is there an output
format that formats with a space between seconds and minutes ?
Dave
On 28-Feb-06, at 12:04 PM, Kris Jurka wrote:
>
>
> On Tue, 28 Feb 2006, Dave Cramer wrote:
>
>> What you sent as sample data is formatted correctly. So the only
>> thing I can think of is that the mapping of the columns is not
>> correct.
>
> Actually what he sent as sample data contained a space before the
> seconds field, "2006-02-27 19:51: 22.58118". I don't know how this
> got into the data because it gets rejected if you try and input it.
>
> jurka=# select '2006-02-27 19:51: 22.58118'::timestamp;
> ERROR: invalid input syntax for type timestamp: "2006-02-27 19:51:
> 22.58118"
>
> Jonathan, are you sure the data coming back from psql has a space
> in it? Any idea how you got into that state?
>
> Kris Jurka
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pg@fastcrypt.com, books@ejurka.com, jonathan.vallar@gmail.com
Subject: Re: Bad Value for Data Type Timestamp
In-Reply-To: <76A61917-5AAB-4CFE-AE31-9E89DC126D08@fastcrypt.com>
References: <6c1017c20602280042i9f38cb2g17b6acf722349ef8@mail.gmail.com> <3C5A526C-645D-41A0-B461-99F2F259393F@fastcrypt.com> <6c1017c20602280255q5d636ef2vbb484808d4399ea3@mail.gmail.com> <E6920CFA-9CCD-4FE5-BC60-8B2B07574899@fastcrypt.com> <Pine.BSO.4.63.0602281200490.2638@leary.csoft.net> <76A61917-5AAB-4CFE-AE31-9E89DC126D08@fastcrypt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox