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 072C05298A for ; Thu, 28 Jul 2005 13:41:00 -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 99077-07 for ; Thu, 28 Jul 2005 16:40:52 +0000 (GMT) Received: from srv22.noname-dns.net (srv22.haisoft.net [213.246.63.9]) by svr1.postgresql.org (Postfix) with ESMTP id 1137D5291C for ; Thu, 28 Jul 2005 13:40:48 -0300 (ADT) Received: (qmail 22212 invoked from network); 28 Jul 2005 16:40:44 -0000 Received: from lns-vlq-34-dij-82-253-18-92.adsl.proxad.net (HELO ?82.253.18.92?) (82.253.18.92) by stevescott.info with SMTP; 28 Jul 2005 16:40:44 -0000 Message-ID: <42E90A89.3040501@openpricer.com> Date: Thu, 28 Jul 2005 18:40:41 +0200 From: Xavier Poinsard Organization: Open Pricer User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: fr, en MIME-Version: 1.0 To: Christian Cryder Cc: "pgsql-jdbc@postgresql.org" Subject: Re: smallint mapping issue References: <90876a9e0507271221246714ac@mail.gmail.com> <42E80EF4.6000505@opencloud.com> <90876a9e0507280905219fca0c@mail.gmail.com> In-Reply-To: <90876a9e0507280905219fca0c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/404 X-Sequence-Number: 13552 Christian Cryder a écrit : > We are in the midst of trying to move to Postgres from MS SQL. Our > current app consists of about 7500 lines of code (this doesn't count > our custom OR mapping middleware). We have over 2500 references to > Short's - because that's how NetDirect's MS SQL drivers return > smallints. It's also how MySQL returns them, and I _think_ IBM's DB2 > returns them that way as well (I just uninstalled my demo version of > DB2, so I can't easily verify). > [...] > b) where it really complicates things is that our current application > is running in production on a db that returns values differently. Now, > it's easy to say "tell them to fix their drivers", but realistically, > that's not an option w/ MS (and I think you guys know this). Did you try the jTDS driver for Sql server ( http://jtds.sourceforge.net/ ) ?