Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGIUE-0007I7-Oc for pgsql-jdbc@arkaria.postgresql.org; Fri, 15 Mar 2013 00:27:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UGIUE-0004Bw-8X for pgsql-jdbc@arkaria.postgresql.org; Fri, 15 Mar 2013 00:27:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGIUD-0004Br-LG for pgsql-jdbc@postgresql.org; Fri, 15 Mar 2013 00:27:05 +0000 Received: from mail63.csoft.net ([205.205.214.4]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UGIUB-0002ZG-Lj for pgsql-jdbc@postgresql.org; Fri, 15 Mar 2013 00:27:04 +0000 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id C451C28426; Thu, 14 Mar 2013 19:27:02 -0500 (EST) Received: by leary.csoft.net (Postfix, from userid 1112) id 8ADD51FBCF; Thu, 14 Mar 2013 19:27:02 -0500 (EST) Date: Thu, 14 Mar 2013 19:27:02 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Igor Urisman cc: pgsql-jdbc@postgresql.org Subject: Re: Improper type conversion from smallint to short In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 X-Pg-Spam-Score: -4.3 (----) Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On Thu, 14 Mar 2013, Igor Urisman wrote: > Hello,It appears that ResultSet.getObject(String name) returns Integer for > database type Types.SMALLINT (5) =C2=A0I expected Short. >=20 Returning Integer is correct according to the JDBC spec. See table 8.6.3= =20 here: http://www.cis.upenn.edu/~bcpierce/courses/629/jdkdocs/guide/jdbc/getstart/= mapping.doc.html Kris Jurka --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc