pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Cramer <pg@fastcrypt.com>
Cc: JEAN-PIERRE PELLETIER <pelletier_32@sympatico.ca>
Cc: List <pgsql-jdbc@postgresql.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] server process (PID 1188) exited with exit code -1073741819, 8.2 beta1
Date: Sat, 11 Nov 2006 23:06:41 -0500
Message-ID: <20721.1163304401@sss.pgh.pa.us> (raw)
In-Reply-To: <1B8AB823-5FD8-4225-8B3C-CE1A72223C23@fastcrypt.com>
References: <BAY118-F910FFA84302F2F0EA339D95010@phx.gbl>
	<1B8AB823-5FD8-4225-8B3C-CE1A72223C23@fastcrypt.com>

Dave Cramer <pg@fastcrypt.com> writes:
> This is a server bug, I will post to hackers for you, it has little  
> to do with JDBC, however the ? can't be a column in a prepared statement

I cannot reproduce any problem using what I think is equivalent in libpq:

    /* Here is our out-of-line parameter value */
    paramValues[0] = "1";

    res = PQexecParams(conn,
                       "select $1 from (select * from pg_database) t",
                       1,        /* one param */
                       NULL,    /* let the backend deduce param type */
                       paramValues,
                       NULL,    /* don't need param lengths since text */
                       NULL,    /* default to all text params */
                       0);      /* ask for text results */

This comes back with
	ERROR:  could not determine data type of parameter $1
but no crash.  Is the JDBC driver doing anything interesting as a result
of the
	pstmt.setObject(1, 1);
and if so what?

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <20721.1163304401@sss.pgh.pa.us>
Permalink:  ../20721.1163304401@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20721.1163304401@sss.pgh.pa.us

 · 

reply

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, pg@fastcrypt.com, pelletier_32@sympatico.ca, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] server process (PID 1188) exited with exit code -1073741819, 8.2 beta1
  In-Reply-To: <20721.1163304401@sss.pgh.pa.us>
  References: <BAY118-F910FFA84302F2F0EA339D95010@phx.gbl> <1B8AB823-5FD8-4225-8B3C-CE1A72223C23@fastcrypt.com> <20721.1163304401@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