tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56586] initSQL should be committed if defaultAutoCommit == false
Date Thu, 05 Jun 2014 13:58:58 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56586

--- Comment #2 from Craig Servin <cservin@cromagnon.com> ---
I am using postgresql and the problem originally showed up when the initSQL was
executing a set search_path and a rollback was triggered by the first
transaction.  To test/recreate the issue I did trigger the same problem with
DML( an insert into a temp table, which then is rolled back).

I was able to "fix" the issue in my case by adding a ";commit" to the end of my
actual initSQL, although this makes me nervous since you are supposed to use
the Connections commit() method when using JDBC.

That solution seamed a little bit hackish to me so I posted this ticket.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message