numerus/verify/invoice_product.sql

20 lines
468 B
MySQL
Raw Normal View History

-- Verify numerus:invoice_product on pg
begin;
select invoice_product_id
, invoice_id
, product_id
, name
, description
, price
, quantity
, discount_rate
from numerus.invoice_product
where false;
select 1 / count(*) from pg_class where oid = 'numerus.invoice_product'::regclass and relrowsecurity;
select 1 / count(*) from pg_policy where polname = 'company_policy' and polrelid = 'numerus.invoice_product'::regclass;
rollback;