introduce separate database-schemas base+rbac #103

Merged
hsh-michaelhoennig merged 54 commits from introduce-separate-database-schemas-base-and-rbac into master 2024-09-16 15:36:38 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 18383b7648 - Show all commits

View File

@ -8,13 +8,13 @@
Returns the row count from the result of the previous query. Returns the row count from the result of the previous query.
Other than the native statement it's usable in an expression. Other than the native statement it's usable in an expression.
*/ */
create or replace function lastRowCount() create or replace function basis.lastRowCount()
returns bigint returns bigint
language plpgsql as $$ language plpgsql as $$
declare declare
lastRowCount bigint; lastRowCount bigint;
begin begin
get diagnostics lastrowCount = row_count; get diagnostics lastRowCount = row_count;
return lastRowCount; return lastRowCount;
end; $$; end; $$;
--// --//

View File

@ -741,7 +741,7 @@ begin
AND obj.objectTable = forObjectTable AND obj.objectTable = forObjectTable
LIMIT maxObjects+1; LIMIT maxObjects+1;
foundRows = lastRowCount(); foundRows = basis.lastRowCount();
if foundRows > maxObjects then if foundRows > maxObjects then
raise exception '[400] Too many accessible objects, limit is %, found %.', maxObjects, foundRows raise exception '[400] Too many accessible objects, limit is %, found %.', maxObjects, foundRows
using using