aboutsummaryrefslogtreecommitdiff
path: root/verify/transaction_type.sql
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2023-03-04 20:21:24 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2023-03-04 20:21:24 +0900
commit69ac90518f003895b8ffb6618b84b91ff4256308 (patch)
treea81c9562b8390afe2f0e5cebf06d019ab44e86ec /verify/transaction_type.sql
parent85aa0f7fa89cad0cd81af87336d7f9d31bb19422 (diff)
Drop transaction_type.
Diffstat (limited to 'verify/transaction_type.sql')
-rw-r--r--verify/transaction_type.sql5
1 files changed, 4 insertions, 1 deletions
diff --git a/verify/transaction_type.sql b/verify/transaction_type.sql
index 64de361..bce032f 100644
--- a/verify/transaction_type.sql
+++ b/verify/transaction_type.sql
@@ -3,8 +3,11 @@
BEGIN;
DO $$
+ DECLARE
+ type_count INTEGER;
BEGIN
- ASSERT (select 1 from pg_type where typname = 'transaction_type');
+ SELECT COUNT(*) INTO type_count FROM pg_type where typname = 'transaction_type';
+ ASSERT type_count = 0;
END
$$;