Closed wwuck closed 3 years ago
pg_tapgen
relies on pg_get_expr()
to get the default value. Seems like you have the schema in the path when you run pg_tapgen
but not when you run the test. I you want the schema included in the test, remove it from the search path when you run pg_tapgen
.
I am testing on PostgreSQL 11.2 (Debian 11.2-1.pgdg90+1).
I created a new test database with the following psql script:
I then auto-generated some tests using the latest
pg_tapgen
, and one of the generated tests was this one:The commands I used to generate and run the tests were:
This test fails with the following error:
Is this possible to fix in
pg_tapgen
orpg_prove
? I saw that thewant:
output inpg_tapgen
comes directly frompg_catalog.pg_get_expr(d.adbin, ad.adrelid)
but I couldn't find where thehave:
output is coming from inpg_prove
so I was unable to debug this issue any further.