pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedTime type error
3+ messages / 3 participants
[nested] [flat]
* Time type error
@ 2002-10-10 16:16 Alexaki Sofia <alexaki@ics.forth.gr>
2002-10-10 23:07 ` Re: Time type error Dave Cramer <Dave@micro-automation.net>
0 siblings, 1 reply; 3+ messages in thread
From: Alexaki Sofia @ 2002-10-10 16:16 UTC (permalink / raw)
To: pgsql-odbc; +Cc: pgsql-jdbc@postgresql.org; Alexaki Sofia <alexaki@ics.forth.gr>
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Time type error
2002-10-10 16:16 Time type error Alexaki Sofia <alexaki@ics.forth.gr>
@ 2002-10-10 23:07 ` Dave Cramer <Dave@micro-automation.net>
2002-10-14 08:00 ` Re: Time type error Peter Kovacs <peter.kovacs@sysdata.siemens.hu>
0 siblings, 1 reply; 3+ messages in thread
From: Dave Cramer @ 2002-10-10 23:07 UTC (permalink / raw)
To: Alexaki Sofia <alexaki@ics.forth.gr>; +Cc: pgsql-odbc; pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
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
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Time type error
2002-10-10 16:16 Time type error Alexaki Sofia <alexaki@ics.forth.gr>
2002-10-10 23:07 ` Re: Time type error Dave Cramer <Dave@micro-automation.net>
@ 2002-10-14 08:00 ` Peter Kovacs <peter.kovacs@sysdata.siemens.hu>
0 siblings, 0 replies; 3+ messages in thread
From: Peter Kovacs @ 2002-10-14 08:00 UTC (permalink / raw)
To: Dave Cramer <Dave@micro-automation.net>; Alexaki Sofia <alexaki@ics.forth.gr>; +Cc: pgsql-odbc; pgsql-jdbc@postgresql.org
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" <Dave@micro-automation.net>
To: "Alexaki Sofia" <alexaki@ics.forth.gr>
Cc: <pgsql-odbc@postgresql.org>; <pgsql-jdbc@postgresql.org>
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)
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-10-14 08:00 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 16:16 Time type error Alexaki Sofia <alexaki@ics.forth.gr>
2002-10-10 23:07 ` Dave Cramer <Dave@micro-automation.net>
2002-10-14 08:00 ` Peter Kovacs <peter.kovacs@sysdata.siemens.hu>
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