Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id 96D949FA170 for ; Sun, 12 Nov 2006 00:06:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 78205-03 for ; Sun, 12 Nov 2006 00:06:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5FE949F95CB for ; Sun, 12 Nov 2006 00:06:42 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kAC46fmi020722; Sat, 11 Nov 2006 23:06:41 -0500 (EST) To: Dave Cramer cc: JEAN-PIERRE PELLETIER , List , PostgreSQL-development Subject: Re: [HACKERS] server process (PID 1188) exited with exit code -1073741819, 8.2 beta1 In-reply-to: <1B8AB823-5FD8-4225-8B3C-CE1A72223C23@fastcrypt.com> References: <1B8AB823-5FD8-4225-8B3C-CE1A72223C23@fastcrypt.com> Comments: In-reply-to Dave Cramer message dated "Tue, 24 Oct 2006 18:11:18 -0400" Date: Sat, 11 Nov 2006 23:06:41 -0500 Message-ID: <20721.1163304401@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/62 X-Sequence-Number: 16104 Dave Cramer 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