Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 2098 invoked from network); 15 Apr 2006 11:50:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Apr 2006 11:50:45 -0000 Received: (qmail 56944 invoked by uid 500); 15 Apr 2006 11:50:36 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 56916 invoked by uid 500); 15 Apr 2006 11:50:35 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 56905 invoked by uid 99); 15 Apr 2006 11:50:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 04:50:35 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of p.ledbrook@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nproxy.gmail.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Apr 2006 04:50:34 -0700 Received: by nproxy.gmail.com with SMTP id q29so168962nfc for ; Sat, 15 Apr 2006 04:50:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ijSAX8Qp6g/NFFXBTW2R58L2c2xZkgUjkGhx24smzio6AwouccLhsuMv0N7c6WUa8rMrKIKZOq+1hr7jGP5Rl8wNfY9BNfWN+IzVgXLhHdBvYuKFbFgJJcCClvehdNgeMY3Htv1CHBd4WqIjU3YfFJtMIJiWr3MYPyuCUnRtlKg= Received: by 10.49.30.20 with SMTP id h20mr1017672nfj; Sat, 15 Apr 2006 04:50:13 -0700 (PDT) Received: by 10.49.17.20 with HTTP; Sat, 15 Apr 2006 04:50:13 -0700 (PDT) Message-ID: Date: Sat, 15 Apr 2006 12:50:13 +0100 From: "Peter Ledbrook" Sender: p.ledbrook@gmail.com To: "Apache Torque Users List" Subject: Re: Postgresql, integer types, and size (Torque 3.2 only) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060410124320.F76906@minotaur.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 11/04/06, Peter Ledbrook wrote: > > If you are still of the opinion that this is a bug, can you please prod= uce > > a test case and create a issue in Torque's bug tracker ? > > > > Thanks, > > > > Thomas > Well, I downloaded and ran the Torque tests, and they worked fine. I have also looked at the code generated by Torque for Scarab, and it uses the "correctBooleans()" method to convert booleans to integers. I thought that having 'javaType=3D"primitive"' might be the problem, but it has no effect on the unit test. And yet, I'm still getting this exception in Scarab: Caused by: org.apache.torque.TorqueException: org.postgresql.util.PSQLException: ERROR: operator does not exist: smallint =3D boolean =09at org.apache.torque.util.BasePeer.throwTorqueException(BasePeer.java:10= 3) =09at org.apache.torque.util.BasePeer.executeQuery(BasePeer.java:899) =09at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:740) =09at org.apache.torque.util.BasePeer.doSelect(BasePeer.java:702) =09at org.tigris.scarab.om.BaseIssueTypePeer.doSelectVillageRecords(BaseIss= ueTypePeer.java:428) =09at org.tigris.scarab.om.BaseIssueTypePeer.doSelectVillageRecords(BaseIss= ueTypePeer.java:400) =09at org.tigris.scarab.om.BaseIssueTypePeer.doSelect(BaseIssueTypePeer.jav= a:369) =09at org.tigris.scarab.om.AbstractScarabModule.getIssueTypes(AbstractScara= bModule.java:852) =09at org.tigris.scarab.om.AbstractScarabModule.getIssueTypes(AbstractScara= bModule.java:826) Any ideas how to trace the queries that are going to PostgreSQL? I just can't see how a boolean is being sent rather than an integer... Cheers, Peter --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org