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 ...@@ -113,14 +113,24 @@ public class ProtXMLUploader implements IDataSetUploader
public void commit() public void commit()
{ {
currentResultDataSetUploader.commit(); try
currentResultDataSetUploader = null; {
currentResultDataSetUploader.commit();
} finally
{
currentResultDataSetUploader = null;
}
} }
public void rollback() public void rollback()
{ {
currentResultDataSetUploader.rollback(); try
currentResultDataSetUploader = null; {
currentResultDataSetUploader.rollback();
} finally
{
currentResultDataSetUploader = null;
}
} }
protected ResultDataSetUploader createUploader() protected ResultDataSetUploader createUploader()
......
...@@ -117,8 +117,11 @@ class ResultDataSetUploader extends AbstractHandler ...@@ -117,8 +117,11 @@ class ResultDataSetUploader extends AbstractHandler
{ {
try try
{ {
connection.rollback(); if (connection.isClosed() == false)
connection.close(); {
connection.rollback();
connection.close();
}
} catch (SQLException ex) } catch (SQLException ex)
{ {
throw CheckedExceptionTunnel.wrapIfNecessary(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