| От | Kevin Grittner |
|---|---|
| Тема | Re: Cannot commit when autoCommit is enabled error |
| Дата | |
| Msg-id | 1379496313.51692.YahooMailNeo@web162904.mail.bf1.yahoo.com обсуждение исходный текст |
| Ответ на | Cannot commit when autoCommit is enabled error (Gurkan Ozfidan <gurkan@timeforgedev.com>) |
| Список | pgsql-general |
Gurkan Ozfidan <gurkan@timeforgedev.com> wrote:
>ERROR in createReportTable(): Cannot commit when autoCommit is enabled.
>PART OF THE CODE:
> } catch (Exception e) {
> System.err.println("ERROR in runStorageSQLQuery(): " + e.getMessage() + " sqlQuery: "+sqlQuery);
> e.printStackTrace();
It may be part of the code, but it's not the part that is throwing
the exception.
FWIW, the JDBC API requires that the driver throw an exception if
you try to invoke Connection.commit() on a connection which is in
autoCommit mode. Older versions of the PostgreSQL JDBC driver
failed to do that; newer ones comply with that requirement.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера