This commit is contained in:
Jonathan Jenne 2022-03-15 15:22:38 +01:00
commit 08a55c599c
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ Namespace IDB
Public Function NewObjectIdWithTransaction(pKindType As String, pWho As String, pConnection As SqlConnection, pTransaction As SqlTransaction) As Long Public Function NewObjectIdWithTransaction(pKindType As String, pWho As String, pConnection As SqlConnection, pTransaction As SqlTransaction) As Long
Try Try
Dim oNewObjectIdSQL = $"DECLARE @NEW_IDB_OBJ_ID BIGINT Dim oNewObjectIdSQL = $"DECLARE @NEW_IDB_OBJ_ID BIGINT
EXEC PRIDB_NEW_OBJECT '{pKindType}','{pWho}',0, @IDB_OBJ_ID = @NEW_IDB_OBJ_ID OUTPUT; EXEC PRIDB_NEW_OBJECT '{pKindType}','{pWho}',0, 0, @IDB_OBJ_ID = @NEW_IDB_OBJ_ID OUTPUT;
SELECT @NEW_IDB_OBJ_ID" SELECT @NEW_IDB_OBJ_ID"
Dim oObjectId As Long = Database.GetScalarValueWithConnectionObject(oNewObjectIdSQL, Dim oObjectId As Long = Database.GetScalarValueWithConnectionObject(oNewObjectIdSQL,
pConnection, pConnection,

View File

@ -144,7 +144,7 @@ Namespace Methods.GlobalIndexer
Return oIndexes Return oIndexes
Catch ex As Exception Catch ex As Exception
LogAndThrow(ex, "Error while loading indexes!") LogAndThrow(ex, $"Error while loading manual indizes [{ex.Message}]")
Return Nothing Return Nothing
End Try End Try
End Function End Function