X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3513AD1B52C for ; Thu, 4 Sep 2003 22:16:26 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 54648-07 for ; Thu, 4 Sep 2003 19:16:18 -0300 (ADT) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by svr1.postgresql.org (Postfix) with ESMTP id 38064D1B899 for ; Thu, 4 Sep 2003 19:16:14 -0300 (ADT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.3/8.12.3/Debian-6.4) with SMTP id h84MG60c001737; Thu, 4 Sep 2003 17:16:11 -0500 Reply-To: From: "Nick Fankhauser" To: "Brendan Caylor: Forgecom" , Subject: Re: Date: Thu, 4 Sep 2003 17:15:10 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-reply-to: <5.1.0.14.0.20030903115145.00a88e20@10.10.10.16> Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/57 X-Sequence-Number: 8200 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 >