Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 6AE84475E20; Mon, 14 Oct 2002 04:02:18 -0400 (EDT) Received: from mrelayb.sbs.fr (mrelayb.sbs.fr [194.3.18.15]) by postgresql.org (Postfix) with SMTP id ED6F14763BA; Mon, 14 Oct 2002 04:02:15 -0400 (EDT) Received: from ACER ([139.10.85.85]) by sdso180a.par.siemens.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 468446B7; Mon, 14 Oct 2002 10:01:12 +0200 Message-ID: <022e01c27357$bf83cc70$55550a8b@ACER> From: "Peter Kovacs" To: "Dave Cramer" , "Alexaki Sofia" Cc: , References: <1034291253.1893.42.camel@inspiron.cramers> Subject: Re: Time type error Date: Mon, 14 Oct 2002 10:00:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/170 X-Sequence-Number: 5141 This is really a fantastic example. Just make sure not to mistake PreparedStatement(s) for prepared statement(s), because they are not the same (as we learned it from Barry a few days ago). ----- Original Message ----- From: "Dave Cramer" To: "Alexaki Sofia" Cc: ; Sent: Friday, October 11, 2002 1:07 AM Subject: Re: [JDBC] Time type error > This is a fantastic example of why to use prepared statements, just use > a preparedstatement and use setTime the driver will take care of it for > you. > > Dave > On Thu, 2002-10-10 at 12:16, Alexaki Sofia wrote: > > Hello, > > > > I am using PostgreSQL 7.2.1, and I am using JDBC interface > > to store the data in the db. > > > > I have created a table with a field of "time". > > However when I try to insert a time value with a time zone I get the error > > ERROR: Bad time external representation '16:20:00 +04:00' > > > > None of the following values seems to be valid > > '16:20:00+04' '16:20:00 +04' '16:20:00 +04:00' '16:20:00+04:00' > > > > Is there any bug in PostgreSQL in handling the type time? > > > > thanks in advance, > > Sofia Alexaki > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 6: Have you searched our list archives? > > > > http://archives.postgresql.org > > > > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)