removed unused alias from SQL query of mdm-clear (#5416)

This commit is contained in:
TynerGjs 2023-10-31 15:08:08 -04:00 committed by GitHub
parent 1c5fe61b38
commit 7131be758c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
type: fix
issue: 5415
title: "Previously, `$mdm-clear` jobs would fail on MSSQL. This is now fixed."

View File

@ -53,7 +53,7 @@ public interface IMdmLinkJpaRepository
@Modifying
@Query(
value =
"DELETE FROM MPI_LINK_AUD f WHERE GOLDEN_RESOURCE_PID IN (:goldenPids) OR TARGET_PID IN (:goldenPids)",
"DELETE FROM MPI_LINK_AUD WHERE GOLDEN_RESOURCE_PID IN (:goldenPids) OR TARGET_PID IN (:goldenPids)",
nativeQuery = true)
void deleteLinksHistoryWithAnyReferenceToPids(@Param("goldenPids") List<Long> theResourcePids);