V 2.3.6.0 Debug Param-Liste auf 1000 Zeichen begrenzt

This commit is contained in:
Developer01
2025-06-03 08:30:05 +02:00
parent 1d31298d8d
commit c0054d41ae
2 changed files with 8 additions and 4 deletions

View File

@@ -470,6 +470,7 @@ Public Class MSSQLServer
Dim oTransaction As SqlTransaction = MaybeGetTransaction(pSqlConnection, pTransactionMode, pTransaction)
Try
Logger.Debug("ExecuteNonQueryWithConnectionObject: Running Command [{0}] and Parameters [{1}]", pSqlCommandObject.CommandText, GetParameterListAsString(pSqlCommandObject))
pSqlCommandObject.Connection = pSqlConnection
@@ -651,7 +652,10 @@ Public Class MSSQLServer
Cast(Of SqlParameter).
Select(Function(p) $"({p.ParameterName}={p.Value})").
ToList()
Return String.Join(",", oList)
Dim oParamString = String.Join(",", oList)
If oParamString.Length > 1000 Then
oParamString = oParamString.Substring(1, 1000)
End If
Return oParamString
End Function
End Class