From: Dave Cramer <pg@fastcrypt.com>
To: Palle Girgensohn <girgen@pingpong.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: BUG? res.next() == false, but psql finds tuples?
Date: Fri, 22 Apr 2005 11:23:12 -0400
Message-ID: <426916E0.7090904@fastcrypt.com> (raw)
In-Reply-To: <BB67E201AD7D7BB34C75A481@rambutan.pingpong.net>
References: <D05A33D3D62A6E1764DC8B8B@rambutan.pingpong.net>
<42690728.9040101@fastcrypt.com>
<809.1114182092@sss.pgh.pa.us>
<BB67E201AD7D7BB34C75A481@rambutan.pingpong.net>
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
> <tgl@sss.pgh.pa.us> wrote:
>
>> Dave Cramer <pg@fastcrypt.com> 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
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: pg@fastcrypt.com, girgen@pingpong.net, tgl@sss.pgh.pa.us
Subject: Re: BUG? res.next() == false, but psql finds tuples?
In-Reply-To: <426916E0.7090904@fastcrypt.com>
References: <D05A33D3D62A6E1764DC8B8B@rambutan.pingpong.net> <42690728.9040101@fastcrypt.com> <809.1114182092@sss.pgh.pa.us> <BB67E201AD7D7BB34C75A481@rambutan.pingpong.net> <426916E0.7090904@fastcrypt.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