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 4C8DF52840 for ; Fri, 29 Jul 2005 11:35:52 -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 55408-10 for ; Fri, 29 Jul 2005 14:35:43 +0000 (GMT) Received: from smtp-out.completel.net (smtp-out.completel.net [83.145.110.36]) by svr1.postgresql.org (Postfix) with ESMTP id 793EF52A1E for ; Fri, 29 Jul 2005 11:35:37 -0300 (ADT) Received: from mail.emicnetworks.com (unknown [213.244.29.170]) by smtp-out.completel.net (Postfix) with SMTP id C271C28005B for ; Fri, 29 Jul 2005 16:35:41 +0200 (CEST) Received: (nullmailer pid 4894 invoked by uid 1000); Fri, 29 Jul 2005 14:37:02 -0000 Date: Fri, 29 Jul 2005 16:37:02 +0200 From: Marc Herbert To: pgsql-jdbc@postgresql.org Subject: Re: smallint mapping issue Message-ID: <20050729143702.GB1127@emicnetworks.com> References: <90876a9e0507271221246714ac@mail.gmail.com> <42E80EF4.6000505@opencloud.com> <90876a9e0507280905219fca0c@mail.gmail.com> <42E9770F.2020205@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42E9770F.2020205@opencloud.com> User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.042 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/416 X-Sequence-Number: 13564 On Fri, Jul 29, 2005 at 12:23:43PM +1200, Oliver Jowett wrote: > Christian Cryder wrote: > > [...] > > > Does that help explain where I'm coming from here? > > Sure, I understand exactly where you're coming from. > > If you want a stable, unchanging, tested-for-your-application driver, I > suggest you import from whatever spot in CVS serves your needs and > maintain it yourself. You can selectively backpatch bugfixes from the > official driver as needed. (this is exactly what Open Cloud does for our > product, BTW, it's just that because I also hack on the official driver > the changes aren't usually all that big -- any fixes we need I try to > push back into the official driver) > I don't really want to see the official driver become even more of a > maze of twisty little backwards-compatibility hacks than it already is.. > We have perhaps 1/4 of a > developer working on the driver between myself, Kris, and Dave, so we > really don't have tons of development time spare :/ And when a > complete CVS history is there for the taking.. it's not like we're > forcing you to use a particular version. Christian, You can find the cause of your despair here: http://gborg.postgresql.org/cgi-bin/cvsweb.cgi/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java.diff?r1=1.74;r2=1.75;cvsroot=pgjdbc As you can see there, the "bug/feature" you are asking for seems to be just the matter of the following line of code: case Types.SMALLINT: return new Short(getShort(columnIndex)); You really don't need any seasoned developer to check out a stable release from CVS (using a tag), rolling back this change above and compiling a driver customized to your needs. You don't even need to know Java. Considering what you said about your business, it would be surprising that you don't have anyone in-house skilled enough for that. The time your team will spent on this issue, or the fees you gonna pay to the OpenCloud-like company which will deal with it for you, will both surely be pale compared to the licensing costs you were paying before Postgres :-) Cheers, Marc.