Re: Improper type conversion from smallint to short

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Improper type conversion from smallint to short
Дата
Msg-id alpine.BSO.2.00.1303141926050.13697@leary.csoft.net
обсуждение исходный текст
Ответ на Improper type conversion from smallint to short  (Igor Urisman <igor.urisman@gmail.com>)
Ответы Re: Improper type conversion from smallint to short  (Igor Urisman <igor.urisman@gmail.com>)
Список pgsql-jdbc

On Thu, 14 Mar 2013, Igor Urisman wrote:

> Hello,It appears that ResultSet.getObject(String name) returns Integer for
> database type Types.SMALLINT (5)  I expected Short.
>

Returning Integer is correct according to the JDBC spec.  See table 8.6.3
here:

http://www.cis.upenn.edu/~bcpierce/courses/629/jdkdocs/guide/jdbc/getstart/mapping.doc.html

Kris Jurka

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

Предыдущее
От: Igor Urisman
Дата:
Сообщение: Improper type conversion from smallint to short
Следующее
От: Igor Urisman
Дата:
Сообщение: Re: Improper type conversion from smallint to short