Jobs: fix typo, use truncate instead of delete
This commit is contained in:
parent
dbbacd2623
commit
e3c500938b
@ -120,7 +120,7 @@ Public Class GraphQLJob
|
||||
|
||||
' Clear Table before inserting
|
||||
If pQuery.ClearBeforeFill = True Then
|
||||
If DeleteWithQueryName(pQuery) Then
|
||||
If DeleteWithQueryName(pQuery) = False Then
|
||||
Throw New ApplicationException($"Error while clearing table before fill for Query [{pQuery.Name}]")
|
||||
End If
|
||||
End If
|
||||
@ -198,7 +198,7 @@ Public Class GraphQLJob
|
||||
End Function
|
||||
|
||||
Private Function DeleteWithQueryName(pQuery)
|
||||
Dim oDeleteSQL = $"DELETE FROM {pQuery.DestinationTable}"
|
||||
Dim oDeleteSQL = $"TRUNCATE TABLE {pQuery.DestinationTable}"
|
||||
Return _MSSQL.ExecuteNonQuery(oDeleteSQL)
|
||||
End Function
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user