15 lines
394 B
PL/PgSQL
15 lines
394 B
PL/PgSQL
-- Verify camper:invoice_number_counter on pg
|
|
|
|
begin;
|
|
|
|
select company_id
|
|
, year
|
|
, currval
|
|
from camper.invoice_number_counter
|
|
where false;
|
|
|
|
select 1 / count(*) from pg_class where oid = 'camper.invoice_number_counter'::regclass and relrowsecurity;
|
|
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'camper.invoice_number_counter'::regclass;
|
|
|
|
rollback;
|