pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feed(no subject)
2+ messages / 2 participants
[nested] [flat]
* (no subject)
@ 2003-09-03 10:54 Brendan Caylor: Forgecom <Brendan@forgecom.co.uk>
2003-09-04 22:15 ` Re: Nick Fankhauser <nickf@ontko.com>
0 siblings, 1 reply; 2+ messages in thread
From: Brendan Caylor: Forgecom @ 2003-09-03 10:54 UTC (permalink / raw)
To: pgsql-jdbc
To whom ever it may concern,
We are having trouble with what we think is the JDBC driver.
We can query a PostgreSQL database without problems except for when a query
that contains a field with a data type of decimal. When running a script,
the following runtime error occurs:
Message: General SQL Error
Tag Context: CFQUERY: Line=1; Column=1
Detail: Database reported: Bad Integer 1.95
It seems that its trying to interpret the value of the field, which in this
case is 1.95, as an integer and of course it isn't so bombs.
It would be interesting to know if anyone else has reported a similar
problem and if so what was the resulting fix to the bug.
What is going wrong here, any help would be much appreciated.
With many thanks in advance,
Brendan Caylor
Forgecom.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re:
2003-09-03 10:54 (no subject) Brendan Caylor: Forgecom <Brendan@forgecom.co.uk>
@ 2003-09-04 22:15 ` Nick Fankhauser <nickf@ontko.com>
0 siblings, 0 replies; 2+ messages in thread
From: Nick Fankhauser @ 2003-09-04 22:15 UTC (permalink / raw)
To: Brendan Caylor: Forgecom <Brendan@forgecom.co.uk>; pgsql-jdbc
The short answer is no- I can't recall anyone ever having a problem with a
non-integer field if the variable receiving the value is appropriately
typed.
The long answer is that if you can supply a sample of the code where this
problem is occurring, someone on the list may be able to help. In addition,
knowing the versions of various software components (and what they are) is
important. I gather you're using a tag library with JSPs?
-Nick
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Brendan Caylor:
> Forgecom
> Sent: Wednesday, September 03, 2003 5:55 AM
> To: pgsql-jdbc@postgresql.org
> Subject: [JDBC]
>
>
> To whom ever it may concern,
>
> We are having trouble with what we think is the JDBC driver.
>
> We can query a PostgreSQL database without problems except for
> when a query
> that contains a field with a data type of decimal. When running a script,
> the following runtime error occurs:
>
> Message: General SQL Error
> Tag Context: CFQUERY: Line=1; Column=1
> Detail: Database reported: Bad Integer 1.95
>
> It seems that its trying to interpret the value of the field,
> which in this
> case is 1.95, as an integer and of course it isn't so bombs.
>
> It would be interesting to know if anyone else has reported a similar
> problem and if so what was the resulting fix to the bug.
>
> What is going wrong here, any help would be much appreciated.
>
> With many thanks in advance,
>
> Brendan Caylor
> Forgecom.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-09-04 22:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03 10:54 Brendan Caylor: Forgecom <Brendan@forgecom.co.uk>
2003-09-04 22:15 ` Re: Nick Fankhauser <nickf@ontko.com>
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