Skip to content
Snippets Groups Projects
Commit c12887ac authored by felmer's avatar felmer
Browse files

double rollback bug fixed

SVN: 15629
parent 312ff21d
No related branches found
No related tags found
No related merge requests found
......@@ -113,14 +113,24 @@ public class ProtXMLUploader implements IDataSetUploader
public void commit()
{
currentResultDataSetUploader.commit();
currentResultDataSetUploader = null;
try
{
currentResultDataSetUploader.commit();
} finally
{
currentResultDataSetUploader = null;
}
}
public void rollback()
{
currentResultDataSetUploader.rollback();
currentResultDataSetUploader = null;
try
{
currentResultDataSetUploader.rollback();
} finally
{
currentResultDataSetUploader = null;
}
}
protected ResultDataSetUploader createUploader()
......
......@@ -117,8 +117,11 @@ class ResultDataSetUploader extends AbstractHandler
{
try
{
connection.rollback();
connection.close();
if (connection.isClosed() == false)
{
connection.rollback();
connection.close();
}
} catch (SQLException ex)
{
throw CheckedExceptionTunnel.wrapIfNecessary(ex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment