diff --git a/java/code/src/com/redhat/rhn/domain/action/rhnpackage/test/PackageActionDetailsTest.java b/java/code/src/com/redhat/rhn/domain/action/rhnpackage/test/PackageActionDetailsTest.java index faaac492359..a2e26dc4eba 100644 --- a/java/code/src/com/redhat/rhn/domain/action/rhnpackage/test/PackageActionDetailsTest.java +++ b/java/code/src/com/redhat/rhn/domain/action/rhnpackage/test/PackageActionDetailsTest.java @@ -167,8 +167,8 @@ public static PackageActionDetails createTestDetailsWithName(User user, Action p Long testid = 100L; pad.setArch((HibernateFactory.getSession().createNativeQuery(""" - SELECT p.* from rhnPackageArch as p WHERE p.label = :label - """, PackageArch.class).setParameter("label", testid).getSingleResult())); + SELECT p.* from rhnPackageArch as p WHERE p.id = :id + """, PackageArch.class).setParameter("id", testid).getSingleResult())); pad.setPackageName(PackageNameTest.createTestPackageName()); ((PackageAction) parent).addDetail(pad);