Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar
В списке pgsql-jdbc по дате отправления:
| От | hpb@htl-steyr.ac.at |
|---|---|
| Тема | Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar |
| Дата | |
| Msg-id | 43BDCCFC.6050105@htl-steyr.ac.at обсуждение |
| Ответ на | Re: bug in getTime after insertRow with postgresql-8.1-404.jdbc3.jar (Oliver Jowett <oliver@opencloud.com>) |
| Список | pgsql-jdbc |
The data is inserted in the database correctly!
I was thinking about a workaround by doing another select. I didn't I
posted in the newsgroup ;-)
hpb
Oliver Jowett schrieb:
> hpb@htl-steyr.ac.at wrote:
>
>> System.out.println("millisec before
>> insertRow:"+((java.sql.Time)this.db.rs.getTime("ist_von")).getTime());
>>
>> this.db.rs.insertRow(); //write the actual insert row to table
>>
>> System.out.println("millisec after
>> insertRow:"+((java.sql.Time)this.db.rs.getTime("ist_von")).getTime());
>
>
> Is the data actually inserted to the database correctly?
>
> If you re-query it via a different resultset, is it correct?
>
> (IIRC, insertRow() directly updates the Java-side resultset without
> requerying the DB, which is why I ask -- I suspect there will be a bug
> in that update code)
>
> -O
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера