Re: Change of format of returned flat value after prepareThreshold
| От | Vladimir Sitnikov |
|---|---|
| Тема | Re: Change of format of returned flat value after prepareThreshold |
| Дата | |
| Msg-id | CAB=Je-H_Q0ezjcBM9gCta=wVZyUKs+7WExwKRuJRdhssq9B8Bg@mail.gmail.com обсуждение исходный текст |
| Ответ на | Change of format of returned flat value after prepareThreshold (Michał Niklas <michal.niklas@heuthes.pl>) |
| Ответы |
Re: Change of format of returned flat value after
prepareThreshold
|
| Список | pgsql-jdbc |
>but I think that those numbers can be returned as large integers just like it was with 9.3 drivers or just like it is I'm afraid it is not possible at jdbc driver level. You need to change application code. As far as I can see from your output, backend reports float8. That means, we have just a "double" at the client side, and we have no idea what string representation is "expected". If you want a "epoch time", I would recommend using resultSet.getLong(). Additionally, you might want to cast the selected expression to int8, so you do not mess with floating point numerics. Is there a specific reason why you expect non-scientific output of a _floating_ value out of .getString()? Vladimir
В списке pgsql-jdbc по дате отправления: