Skip to content

Commit a5561b9

Browse files
author
chenyunliang520
committed
Fix test schema cleanup failure by setting owner to root for all testrange functions before dropping schema (resolves HuaweiCloudDeveloper#26)
1 parent 7ae3be1 commit a5561b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/types/test_range.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@ def create_test_range(conn):
270270

271271
conn.execute(
272272
"""
273+
ALTER FUNCTION testschema.testrange(double precision, double precision) OWNER TO root;
274+
ALTER FUNCTION testschema.testrange(double precision, double precision, text) OWNER TO root;
275+
276+
ALTER FUNCTION public.testrange(text, text, text) OWNER TO root;
277+
ALTER FUNCTION public.testrange(text, text) OWNER TO root;
278+
273279
drop schema if exists testschema cascade;
274280
create schema testschema;
275281

0 commit comments

Comments
 (0)