From rperiasamy@aol.com Thu Nov 16 06:29:03 2006 Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 989339F9ECD for ; Thu, 16 Nov 2006 02:29:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 31402-07 for ; Thu, 16 Nov 2006 02:28:59 -0400 (AST) X-Greylist: whitelisted by SQLgrey- Received: from omr-r01.mail.aol.com (omr-r01.mx.aol.com [152.163.225.129]) by postgresql.org (Postfix) with ESMTP id 751269F9AD7 for ; Thu, 16 Nov 2006 02:28:59 -0400 (AST) Received: from aol.com (10.146.144.116) by omr-r01.mail.aol.com with ESMTP; 16 Nov 2006 01:28:57 -0500 Message-ID: <455C0537.8040206@aol.com> Date: Thu, 16 Nov 2006 11:59:11 +0530 From: Ravi Periasamy Reply-To: rperiasamy@aol.com Organization: AOL User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org, jdb_switcher_dev Subject: Support for named parameters in the PostgreSQL JDBC driver Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.231 tagged_above=0 required=5 tests=BAYES_40, HTML_50_60, HTML_MESSAGE, MIME_HTML_ONLY, RCVD_FAKE_HELO_DOTCOM, SPF_PASS X-Spam-Level: ** X-Archive-Number: 200611/79 X-Sequence-Number: 16121 Dear PGSQL-JDBC Team,

Could you please let me know if the support for "Named Parameters" in the JDBC driver is slated for some future release?

Currently with the 8.1.4 JDBC driver, the call to CallableStatement.setString(String, String) fails and the code is throwing the following exception -

"Caused by: org.postgresql.util.PSQLException: Method org.postgresql.jdbc3.Jdbc3CallableStatement.setString(String,String) is not yet implemented."

Thanks
Ravi





From pg@fastcrypt.com Thu Nov 16 12:21:46 2006 Received: from localhost (pluto.hub.org [200.46.204.4]) by postgresql.org (Postfix) with ESMTP id 872CA9F9ECD for ; Thu, 16 Nov 2006 08:21:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.4]) (amavisd-new, port 10024) with ESMTP id 04208-01 for ; Thu, 16 Nov 2006 08:21:32 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 209089F9DCD for ; Thu, 16 Nov 2006 08:21:41 -0400 (AST) Received: (qmail 29384 invoked from network); 16 Nov 2006 12:21:40 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 16 Nov 2006 12:21:40 -0000 In-Reply-To: <455C0537.8040206@aol.com> References: <455C0537.8040206@aol.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: multipart/alternative; boundary=Apple-Mail-1-688906287 Message-Id: <15962BD4-D33C-412B-AC50-A1EB93AA5748@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org, jdb_switcher_dev From: Dave Cramer Subject: Re: Support for named parameters in the PostgreSQL JDBC driver Date: Thu, 16 Nov 2006 07:21:39 -0500 To: rperiasamy@aol.com X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/80 X-Sequence-Number: 16122 --Apple-Mail-1-688906287 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Ravi, The backend does not support named parameters, so I doubt this will be coming anytime soon. Dave On 16-Nov-06, at 1:29 AM, Ravi Periasamy wrote: > Dear PGSQL-JDBC Team, > > Could you please let me know if the support for "Named Parameters" > in the JDBC driver is slated for some future release? > > Currently with the 8.1.4 JDBC driver, the call to > CallableStatement.setString(String, String) fails and the code is > throwing the following exception - > > "Caused by: org.postgresql.util.PSQLException: Method > org.postgresql.jdbc3.Jdbc3CallableStatement.setString > (String,String) is not yet implemented." > > Thanks > Ravi > > > > > --Apple-Mail-1-688906287 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=US-ASCII Ravi,


The backend does not = support named parameters, so I doubt this will be coming anytime = soon.

Dave
On = 16-Nov-06, at 1:29 AM, Ravi Periasamy wrote:

Dear = PGSQL-JDBC Team,

Could you please let me know if the support = for "Named Parameters" in the JDBC driver is slated for some = future release?

Currently with the 8.1.4 JDBC driver, the call = to CallableStatement.setString(String, String) fails and the code is throwing = the following exception -

"Caused by: = org.postgresql.util.PSQLException: Method = org.postgresql.jdbc3.Jdbc3CallableStatement.setString(String,String) is = not yet implemented."

Thanks
Ravi




=

= --Apple-Mail-1-688906287-- From books@ejurka.com Thu Nov 16 17:53:18 2006 Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id D4DA49F9CCC for ; Thu, 16 Nov 2006 13:53:18 -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 29090-03 for ; Thu, 16 Nov 2006 13:53:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 374D49F9998 for ; Thu, 16 Nov 2006 13:53:15 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by svr4.postgresql.org (Postfix) with ESMTP id 91D145AF034 for ; Thu, 16 Nov 2006 17:53:13 +0000 (GMT) Received: by mail63.csoft.net (Postfix, from userid 1112) id 90BDE12032; Thu, 16 Nov 2006 12:52:52 -0500 (EST) Date: Thu, 16 Nov 2006 12:52:52 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: Ravi Periasamy Cc: pgsql-jdbc@postgresql.org, jdb_switcher_dev Subject: Re: Support for named parameters in the PostgreSQL JDBC driver In-Reply-To: <455C0537.8040206@aol.com> Message-ID: References: <455C0537.8040206@aol.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/81 X-Sequence-Number: 16123 On Thu, 16 Nov 2006, Ravi Periasamy wrote: > Dear PGSQL-JDBC Team, > > Could you please let me know if the support for "Named Parameters" in the > JDBC driver is slated for some future release? > Just recently I noticed an overlooked patch that implements this: http://archives.postgresql.org/pgsql-jdbc/2006-07/msg00011.php The suggested patch isn't quite right, but its approach can work in many cases. If functions are not overloaded then a simple lookup of parameter names by the function name would work. If the function is overloaded we might be able to use the parameter type given by setXXX to try and determine what function we're actually calling, but it's probably better to just error out in that case. Kris Jurka From pg@fastcrypt.com Thu Nov 16 23:28:43 2006 Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A950D9F976E for ; Thu, 16 Nov 2006 19:28:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 28716-09 for ; Thu, 16 Nov 2006 23:28:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id 2A0CF9F942F for ; Thu, 16 Nov 2006 19:28:38 -0400 (AST) Received: (qmail 4911 invoked from network); 16 Nov 2006 23:28:36 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.14?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 16 Nov 2006 23:28:36 -0000 In-Reply-To: References: <455C0537.8040206@aol.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <087676AC-4DF5-4312-8596-EE17D9D9E4D9@fastcrypt.com> Cc: Ravi Periasamy , pgsql-jdbc@postgresql.org, jdb_switcher_dev Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Support for named parameters in the PostgreSQL JDBC driver Date: Thu, 16 Nov 2006 18:28:34 -0500 To: Kris Jurka X-Mailer: Apple Mail (2.752.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/83 X-Sequence-Number: 16125 The patch looks promising, however my gut reaction to this is that until it's supported by the protocol this will break more often than it will work. On top of that named parameters are not part of the SQL spec. Dave On 16-Nov-06, at 12:52 PM, Kris Jurka wrote: > > > On Thu, 16 Nov 2006, Ravi Periasamy wrote: > >> Dear PGSQL-JDBC Team, >> Could you please let me know if the support for "Named Parameters" >> in the >> JDBC driver is slated for some future release? >> > > Just recently I noticed an overlooked patch that implements this: > http://archives.postgresql.org/pgsql-jdbc/2006-07/msg00011.php > > The suggested patch isn't quite right, but its approach can work in > many cases. If functions are not overloaded then a simple lookup > of parameter names by the function name would work. If the > function is overloaded we might be able to use the parameter type > given by setXXX to try and determine what function we're actually > calling, but it's probably better to just error out in that case. > > Kris Jurka > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq >