Re: Problem with DATE

Поиск
Список
Период
Сортировка
От Vinayak
Тема Re: Problem with DATE
Дата
Msg-id 1421131374401-5833708.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: Problem with DATE  (Vinayak <vinpokale@gmail.com>)
Ответы Re: Problem with DATE  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Hi,

I have checked the below description in one post:
If the timestamp parameter is given, the jdbc does not know if it is to be
used timestamp or timestamptz. The jdbc driver passes it to the server as an
unknown data type letting the server figure out what to do with it.
Example:
timestampcol = ? or if you're inserting into a timestamp field so the server
can determine the datatype of parameter being used at, in this case since
its just being sent back to the user the server cannot determine the data
type.
so we need to typecast it.
"SELECT ?::timestamp"

Is the same problem for date type also?




-----
Regards,
Vinayak,

--
View this message in context: http://postgresql.nabble.com/Problem-with-DATE-tp5833008p5833708.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


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

Предыдущее
От: Vinayak
Дата:
Сообщение: Re: Problem with DATE
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Problem with DATE