numerus/verify/invoice_number_counter.sql

15 lines
398 B
MySQL
Raw Normal View History

-- Verify numerus:invoice_number_counter on pg
begin;
select company_id
, year
, currval
from numerus.invoice_number_counter
where false;
select 1 / count(*) from pg_class where oid = 'numerus.invoice_number_counter'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.invoice_number_counter'::regclass;
rollback;