Re: The same prepared query yield "-1" the first six times and then "-1.0"
В списке pgsql-general по дате отправления:
| От | Edoardo Panfili |
|---|---|
| Тема | Re: The same prepared query yield "-1" the first six times and then "-1.0" |
| Дата | |
| Msg-id | D22FEEC1-17CE-4093-A201-EF1D76687279@gmail.com обсуждение |
| Ответ на | Re: The same prepared query yield "-1" the first six times and then "-1.0" ("David G. Johnston" <david.g.johnston@gmail.com>) |
| Ответы |
Re: The same prepared query yield "-1" the first six times and then "-1.0"
|
| Список | pgsql-general |
I know, but in this occasion I need to use text value.Il giorno 21 ago 2023, alle ore 17:50, David G. Johnston <david.g.johnston@gmail.com> ha scritto:On Mon, Aug 21, 2023 at 8:28 AM Edoardo Panfili <edoardo.panfili@iisgubbio.edu.it> wrote:
dim1 real DEFAULT '-1' NOT NULL
System.out.print("p: "+rs.getString("dim1")+"\n”);
Can I do something to avoid this problem?Use the type appropriate getter, not getString, to retrieve the value of the underlying real typed column.
I will try, thank youOtherwise, I agree this seems like a bug, probably in the JDBC driver, though one pertains to style as opposed to semantics since both answers are technically correct.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера