From 8b777077a72378c92b4b460f8b7facf7635a4add Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 16 Sep 2024 09:15:03 +0200 Subject: [PATCH] fix missing schema prefixes --- sql/historization.sql | 2 +- sql/rbac-tests.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/historization.sql b/sql/historization.sql index 474f05ca..d854f394 100644 --- a/sql/historization.sql +++ b/sql/historization.sql @@ -28,7 +28,7 @@ commit; set hsadminng.tx_history_txid to ''; set hsadminng.tx_history_timestamp to '2024-08-29 12:42'; -- all versions -select tx_history_txid(), txc.txtimestamp, txc.currentSubject, txc.currentTask, haex.* +select base.tx_history_txid(), txc.txtimestamp, txc.currentSubject, txc.currentTask, haex.* from hs_hosting_asset_ex haex join base.tx_context txc on haex.txid=txc.txid where haex.identifier = 'test@thi.example.org'; diff --git a/sql/rbac-tests.sql b/sql/rbac-tests.sql index bde34d61..1a95add0 100644 --- a/sql/rbac-tests.sql +++ b/sql/rbac-tests.sql @@ -33,7 +33,7 @@ $$ userId uuid; result bool; BEGIN - userId = findRbacSubject('superuser-alex@hostsharing.net'); + userId = rbac.findRbacSubject('superuser-alex@hostsharing.net'); result = (SELECT * FROM rbac.isPermissionGrantedToSubject(rbac.findPermissionId('package', 94928, 'add-package'), userId)); IF (result) THEN RAISE EXCEPTION 'expected permission NOT to be granted, but it is';