feature request

Поиск
Список
Период
Сортировка
От Jan Blok
Тема feature request
Дата
Msg-id 000501c1b493$bd512b10$0201000a@BLOKS3
обсуждение исходный текст
Ответы Re: feature request  (Dave Cramer <Dave@micro-automation.net>)
Список pgsql-jdbc
Hi

I did find the following:

If I have a table with a timestamp column it is not allowed to do the
following

Date start_date = new java.util.Date(); //now
ps4.setObject(2,start_date); //this throws exception "cannot map class
java.util.Date"

but I have todo:

ps4.setTimestamp(2,new java.sql.Timestamp( start_date.getTime()));

which is ugly in my opinion and other database driver do support this...
(under the hood every thing is a java.util.Date right? all classes
java.sql.Date/Time/TimeStamp extend java.util.Date.)






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

Предыдущее
От: "Jan Blok"
Дата:
Сообщение: timestamp exception in driver
Следующее
От: Thomas O'Dowd
Дата:
Сообщение: Re: timestamp exception in driver