Skip to content

Commit ffb06a8

Browse files
committed
fix(test): make aggregate fixture idempotent
Add DROP TABLE IF EXISTS before CREATE TABLE to allow fixture to be executed multiple times without 'relation already exists' error.
1 parent f889aea commit ffb06a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/sqlx/fixtures/aggregate_minmax_data.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
-- Creates table with encrypted integer data including NULL values
55
-- to test aggregate functions on encrypted columns
66

7-
-- Create table
7+
-- Create table (drop first for idempotency)
8+
DROP TABLE IF EXISTS agg_test;
89
CREATE TABLE agg_test
910
(
1011
plain_int integer,

0 commit comments

Comments
 (0)