ZUGFeRDService: delete item values with transaction
This commit is contained in:
parent
8d1221d802
commit
fabe104951
@ -289,7 +289,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
|
|
||||||
oStep = "Firebird TBEDMI_ITEM_VALUE Delete messageID Items"
|
oStep = "Firebird TBEDMI_ITEM_VALUE Delete messageID Items"
|
||||||
Try
|
Try
|
||||||
_firebird.ExecuteNonQueryWithConnection(oDelSQL, oFBConnection)
|
_firebird.ExecuteNonQueryWithConnection(oDelSQL, oFBConnection, Firebird.TransactionMode.ExternalTransaction, oFBTransaction)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Error(ex)
|
_logger.Error(ex)
|
||||||
_logger.Warn("Step [{0}] with SQL [{1}] was not successful.", oStep, oDelSQL)
|
_logger.Warn("Step [{0}] with SQL [{1}] was not successful.", oStep, oDelSQL)
|
||||||
@ -298,7 +298,7 @@ Public Class ImportZUGFeRDFiles
|
|||||||
If oArgs.InsertIntoSQLServer = True Then
|
If oArgs.InsertIntoSQLServer = True Then
|
||||||
oStep = "MSSQL TBEDMI_ITEM_VALUE Delete messageID Items"
|
oStep = "MSSQL TBEDMI_ITEM_VALUE Delete messageID Items"
|
||||||
Try
|
Try
|
||||||
_mssql.ExecuteNonQueryWithConnectionObject(oDelSQL, oSQLConnection)
|
_mssql.ExecuteNonQueryWithConnectionObject(oDelSQL, oSQLConnection, MSSQLServer.TransactionMode.ExternalTransaction, oSQLTransaction)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
_logger.Warn("Step [{0}] with SQL [{1}] was not successful.", oStep, oDelSQL)
|
_logger.Warn("Step [{0}] with SQL [{1}] was not successful.", oStep, oDelSQL)
|
||||||
End Try
|
End Try
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user