Re: SMALLINT vs short or... int?

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: SMALLINT vs short or... int?
Дата
Msg-id 47B437D8.1000804@opencloud.com
обсуждение исходный текст
Ответ на SMALLINT vs short or... int?  (Tomisław Kityński <hataraku@wp.pl>)
Список pgsql-jdbc
Tomisław Kityński wrote:

> But when I call getObject on ResultSet instance on the the
> column that is declared as SMALLINT i get an instance of Integer.

The driver is behaving correctly. See table B-3 in the JDBC 3.0
specification - TINYINT, SMALLINT and INTEGER are all mapped to
java.lang.Integer by ResultSet.getObject().

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: JDBC, prepared queries, and partitioning
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: JDBC, prepared queries, and partitioning