From: Tom Lane <tgl@sss.pgh.pa.us>
To: Palle Girgensohn <girgen@pingpong.net>
Cc: pg@fastcrypt.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: BUG? res.next() == false, but psql finds tuples?
Date: Fri, 22 Apr 2005 18:24:07 -0400
Message-ID: <18374.1114208647@sss.pgh.pa.us> (raw)
In-Reply-To: <C7ACBCB95A235485E9CD223F@palle.girgensohn.se>
References: <D05A33D3D62A6E1764DC8B8B@rambutan.pingpong.net>
<42690728.9040101@fastcrypt.com>
<809.1114182092@sss.pgh.pa.us>
<BB67E201AD7D7BB34C75A481@rambutan.pingpong.net>
<986.1114183053@sss.pgh.pa.us>
<C7ACBCB95A235485E9CD223F@palle.girgensohn.se>
Palle Girgensohn <girgen@pingpong.net> writes:
> hmmm.... is there any way to use the server's prepared statements from psql?
psql can't use the V3 protocol facilities, which means that you can't
duplicate the case very closely.
After reading your report this morning, I made a little test program
using libpq's PQexecParams (basically a quick hack on
src/test/examples/testlibpq3.c) to duplicate your query. I didn't
see any misbehavior; so there is some additional triggering condition
beyond what you've told us.
Given that the query packet looks 100% reasonable by eyeball, it seems
unlikely that the issue is on the JDBC side (barring obvious snafus such
as connecting to a different database than psql is talking to). But I
don't have any data with which to pursue the hypothesis of a server bug.
regards, tom lane
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: tgl@sss.pgh.pa.us, girgen@pingpong.net, pg@fastcrypt.com
Subject: Re: BUG? res.next() == false, but psql finds tuples?
In-Reply-To: <18374.1114208647@sss.pgh.pa.us>
References: <D05A33D3D62A6E1764DC8B8B@rambutan.pingpong.net> <42690728.9040101@fastcrypt.com> <809.1114182092@sss.pgh.pa.us> <BB67E201AD7D7BB34C75A481@rambutan.pingpong.net> <986.1114183053@sss.pgh.pa.us> <C7ACBCB95A235485E9CD223F@palle.girgensohn.se> <18374.1114208647@sss.pgh.pa.us>
* 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