X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E54309DCAD0 for ; Tue, 28 Feb 2006 13:57:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75960-07 for ; Tue, 28 Feb 2006 13:57:34 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id A26809DC9B2 for ; Tue, 28 Feb 2006 13:57:32 -0400 (AST) Received: (qmail 29875 invoked from network); 28 Feb 2006 17:57:32 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 28 Feb 2006 17:57:32 -0000 In-Reply-To: References: <6c1017c20602280042i9f38cb2g17b6acf722349ef8@mail.gmail.com> <3C5A526C-645D-41A0-B461-99F2F259393F@fastcrypt.com> <6c1017c20602280255q5d636ef2vbb484808d4399ea3@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <76A61917-5AAB-4CFE-AE31-9E89DC126D08@fastcrypt.com> Cc: Jonathan Vallar , pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Bad Value for Data Type Timestamp Date: Tue, 28 Feb 2006 12:57:31 -0500 To: Kris Jurka X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.121 required=5 tests=[AWL=0.121] X-Spam-Score: 0.121 X-Spam-Level: X-Archive-Number: 200602/181 X-Sequence-Number: 14778 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 > >