Skip to content

Commit

Permalink
Create the table before the test
Browse files Browse the repository at this point in the history
  • Loading branch information
rodo committed Dec 13, 2024
1 parent 4cce46b commit 2fb6958
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/table_exclusion.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ SELECT results_eq(
'SELECT CAST(2 as bigint)',
'We have 2 rows in schedoc_table_exclusion');

-- create a table that should be excluded
CREATE TABLE IF NOT EXISTS dbz_signal (id int);

-- Now the table is excluded
SELECT results_eq(
'SELECT schedoc_is_table_excluded(oid) FROM pg_class WHERE relname=''dbz_signal''',
Expand All @@ -35,8 +38,7 @@ SELECT results_eq(
TRUNCATE schedoc_column_raw;
TRUNCATE ddl_history;

-- create a table that should be excluded
CREATE TABLE IF NOT EXISTS dbz_signal (id int);

--
SELECT results_eq(
'SELECT count(*) FROM schedoc_column_raw',
Expand Down

0 comments on commit 2fb6958

Please sign in to comment.