X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9D2AE53753 for ; Fri, 22 Apr 2005 12:23:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67324-01 for ; Fri, 22 Apr 2005 15:23:19 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id E63AB53733 for ; Fri, 22 Apr 2005 12:23:18 -0300 (ADT) Received: (qmail 19117 invoked from network); 22 Apr 2005 15:21:55 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 22 Apr 2005 15:21:55 -0000 Message-ID: <426916E0.7090904@fastcrypt.com> Date: Fri, 22 Apr 2005 11:23:12 -0400 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Palle Girgensohn Cc: Tom Lane , pgsql-jdbc@postgresql.org Subject: Re: BUG? res.next() == false, but psql finds tuples? References: <42690728.9040101@fastcrypt.com> <809.1114182092@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.029 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/144 X-Sequence-Number: 12751 Palle, I presume you mixed the two up ? userid is text (setInt()) courseid is int (setString()) Dave Palle Girgensohn wrote: > > > --On fredag, april 22, 2005 11.01.32 -0400 Tom Lane > wrote: > >> Dave Cramer writes: >> >>> Certainly looks like a bug, in the java version mango is not quoted so >>> pg thinks it is a column. >> >> >> But that's just sloppiness in the java log message. The TCP dump shows >> clearly that the values are being sent as $n parameters. >> >> I'm wondering about misassignment of data types or something. It's not >> clear though how that would result in no error but zero rows returned. >> What are the column data types exactly? > > > userid is text (setInt()) > courseid is int (setString()) > > lang is text > > > Interesting that the int is transported as text, `38', but I guess > there are very good reasons for this (not having to duplicate code in > the jdbvc driver, different endians, etc). > > There is no error in the pgsql log, just no result. The same > connection is beeing used for all queries. It is reproducable, every > time, in our app. > > /Palle > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > > -- Dave Cramer http://www.postgresintl.com 519 939 0336 ICQ#14675561