ResultSet internal data type handling

Поиск
Список
Период
Сортировка
От Luca Ferrari
Тема ResultSet internal data type handling
Дата
Msg-id 200905120939.07478.fluca1978@infinito.it
обсуждение исходный текст
Ответы Re: ResultSet internal data type handling
Re: ResultSet internal data type handling
Список pgsql-jdbc
Having a look at jdbc2.AsbtractJDBC2ResultSet (the parent of all ResultSets) I
discovered that all data received from the server is handled internally as a
string (right?) and is converted from the getXXX methods into the appropriate
type. This means that you can actually write a getString on a date field
obtaining a valida date (and if you are lucky you can do something the
opposite). I'm curious to know if this is an implementation choice or a jdbc
specification and why the objects are not checked against the table metadata
(as the getInternalObject method does).

Thanks,
Luca

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

Предыдущее
От: Joe Kramer
Дата:
Сообщение: Unable to access table named "user"
Следующее
От: John Lister
Дата:
Сообщение: Re: ResultSet internal data type handling