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 2341B52AB0 for ; Wed, 27 Jul 2005 16:21:15 -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 38645-10 for ; Wed, 27 Jul 2005 19:21:06 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by svr1.postgresql.org (Postfix) with ESMTP id 292F252ACB for ; Wed, 27 Jul 2005 16:21:05 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i32so227075wra for ; Wed, 27 Jul 2005 12:21:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=XNDT1opWrfmYQzjgl7WQLgeulliHCehV1RHV24HuWzKAPImP40KB7xC2CFL/51bp3e9VzRBe29gZsygGR/5/KU3SnDr4CvP75bVuxTrCGpG1PMffzCx59lJwVU3NvIpcjRRfoHY7wAxViZo4vgFS9vAD/7LKNGmssIx4hVjA120= Received: by 10.54.73.15 with SMTP id v15mr472158wra; Wed, 27 Jul 2005 12:21:05 -0700 (PDT) Received: by 10.54.86.16 with HTTP; Wed, 27 Jul 2005 12:21:04 -0700 (PDT) Message-ID: <90876a9e0507271221246714ac@mail.gmail.com> Date: Wed, 27 Jul 2005 13:21:04 -0600 From: Christian Cryder Reply-To: Christian Cryder To: "pgsql-jdbc@postgresql.org" Subject: smallint mapping issue Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.298 tagged_above=0 required=5 tests=AWL, RCVD_BY_IP, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200507/372 X-Sequence-Number: 13520 Hi guys, Dave tells me this has been discussed recently, but doesn't recall the thread, so I'll post here. In postgresql-8.0-311.jdbc3.jar with a column defined as smallint, the corresponding value returned from getObject() is a Short. In the current HEAD, that same smallint column is returned as an Integer. This causes HUGE problems if it's not an oversight, as it makes it virtually impossible to write JDBC code that works with other dbs (which typically return Short).