pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Brendan Caylor: Forgecom <Brendan@forgecom.co.uk>
To: pgsql-jdbc@postgresql.org
Subject: Re:
Date: Thu, 4 Sep 2003 17:15:10 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGCEEFIDAA.nickf@ontko.com> (raw)
In-Reply-To: <5.1.0.14.0.20030903115145.00a88e20@10.10.10.16>


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
>





view thread (2+ messages)

Message-ID: <NEBBLAAHGLEEPCGOBHDGCEEFIDAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGCEEFIDAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGCEEFIDAA.nickf@ontko.com

 · 

reply

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: nickf@ontko.com, Brendan@forgecom.co.uk
  Subject: Re: 
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGCEEFIDAA.nickf@ontko.com>
  References: <5.1.0.14.0.20030903115145.00a88e20@10.10.10.16> <NEBBLAAHGLEEPCGOBHDGCEEFIDAA.nickf@ontko.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