X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D1D6152862 for ; Wed, 22 Jun 2005 20:51:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66626-09 for ; Wed, 22 Jun 2005 23:51:07 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id A77B452972 for ; Wed, 22 Jun 2005 20:51:06 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1DlEzs-0006mG-4V; Thu, 23 Jun 2005 11:51:08 +1200 Message-ID: <42B9F96B.7000901@opencloud.com> Date: Thu, 23 Jun 2005 11:51:07 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Donny Tjandra Cc: "'pgsql-jdbc@postgresql.org'" Subject: Re: PostgreSQL 8, JDBC 8 and JSTL problems References: In-Reply-To: X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/117 X-Sequence-Number: 13079 Donny Tjandra wrote: > > select * > from get_property_rates(?,?,?,?) > > > > > > > > Unfortunately the type mapping somewhere between JSTL, JDBC and > PostgreSQL is broken and I get function not exist errors like: > > ERROR: function get_property_rates(character varying, character varying, > integer, character varying) does not exist. > All this worked fine with PostgreSQL 7. I'm not sure how many others out > there run into this issue and how they get around it (maybe create > wrapper functions that takes all text parameters), or if there are plans > to add smarter type mapping in future versions of the driver. Search the archives -- it's not really practical to add "smarter type mapping" (really, less strict typing) at the driver level. The "right fix" is to fix the parameter types being given to JDBC by the JSTL layer. I'm not familiar with JSTL -- does let you specify a parameter type? At the JDBC level you can, so I suppose you can in JSTL. BTW it's a driver change, not a backend change, that changed parameter typing behaviour between 7.x and 8.x, so if you are going to revert you should only need to revert the driver. -O