From: Kris Jurka <books@ejurka.com>
To: Igor Urisman <igor.urisman@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Improper type conversion from smallint to short
Date: Thu, 14 Mar 2013 21:29:46 -0500 (EST)
Message-ID: <alpine.BSO.2.00.1303142127130.9313@leary.csoft.net> (raw)
In-Reply-To: <CAJ9OwnXAj=R-5HAFRXahwFeniCQLCSzUgbMHoGxfJUAT25Hq1A@mail.gmail.com>
References: <CAJ9OwnUyCP022aagiCyO1kXGfWZwtqKPv-9YHWmr+T7MtqnhRA@mail.gmail.com>
<alpine.BSO.2.00.1303141926050.13697@leary.csoft.net>
<CAJ9OwnXAj=R-5HAFRXahwFeniCQLCSzUgbMHoGxfJUAT25Hq1A@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
On Thu, 14 Mar 2013, Igor Urisman wrote:
> Thanks, Kris. Not to argue... The spec you're quoting from is pre Java 1.1,
> which is when Short was introduced. (Integer was in 1.0). Just thinking...
> That same spec recommends primitive short. Just sayin'. -Igor.
That was just the first link I happened to find. The specs are in PDF
format that makes linking tough, but if you check the current spec you'll
see the same table, but with this note:
Note . The JDBC 1.0 specification defined the Java object mapping for the
SMALLINT and TINYINT JDBC types to be Integer. The Java language did not
include the Byte and Short data types when the JDBC 1.0 specification was
finalized. The mapping of SMALLINT and TINYINT to Integer is maintained to
preserve backwards compatibility.
Kris Jurka
--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, igor.urisman@gmail.com
Subject: Re: Improper type conversion from smallint to short
In-Reply-To: <alpine.BSO.2.00.1303142127130.9313@leary.csoft.net>
References: <CAJ9OwnUyCP022aagiCyO1kXGfWZwtqKPv-9YHWmr+T7MtqnhRA@mail.gmail.com> <alpine.BSO.2.00.1303141926050.13697@leary.csoft.net> <CAJ9OwnXAj=R-5HAFRXahwFeniCQLCSzUgbMHoGxfJUAT25Hq1A@mail.gmail.com> <alpine.BSO.2.00.1303142127130.9313@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox