mirror of
https://github.com/maplibre/martin.git
synced 2024-12-20 05:11:57 +03:00
pg func discovery ignore sys schemas (#946)
* Blessing results should destroy test db * ignore `pg_catalog` and `information_schema` schemas during functions autodiscovery
This commit is contained in:
parent
a1f794ae4a
commit
108bc05042
2
justfile
2
justfile
@ -138,7 +138,7 @@ test-int: clean-test install-sqlx
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Run integration tests and save its output as the new expected output
|
# Run integration tests and save its output as the new expected output
|
||||||
bless: start clean-test bless-insta
|
bless: restart clean-test bless-insta
|
||||||
rm -rf tests/temp
|
rm -rf tests/temp
|
||||||
cargo test -p martin --features bless-tests
|
cargo test -p martin --features bless-tests
|
||||||
tests/test.sh
|
tests/test.sh
|
||||||
|
@ -23,6 +23,7 @@ WITH
|
|||||||
jsonb_agg(data_type::text ORDER BY ordinal_position) as input_types
|
jsonb_agg(data_type::text ORDER BY ordinal_position) as input_types
|
||||||
FROM information_schema.parameters
|
FROM information_schema.parameters
|
||||||
WHERE parameter_mode = 'IN'
|
WHERE parameter_mode = 'IN'
|
||||||
|
AND specific_schema NOT IN ('pg_catalog', 'information_schema')
|
||||||
GROUP BY specific_name),
|
GROUP BY specific_name),
|
||||||
--
|
--
|
||||||
outputs AS (
|
outputs AS (
|
||||||
@ -32,6 +33,7 @@ WITH
|
|||||||
jsonb_agg(parameter_name::text ORDER BY ordinal_position) as out_names
|
jsonb_agg(parameter_name::text ORDER BY ordinal_position) as out_names
|
||||||
FROM information_schema.parameters
|
FROM information_schema.parameters
|
||||||
WHERE parameter_mode = 'OUT'
|
WHERE parameter_mode = 'OUT'
|
||||||
|
AND specific_schema NOT IN ('pg_catalog', 'information_schema')
|
||||||
GROUP BY specific_name),
|
GROUP BY specific_name),
|
||||||
--
|
--
|
||||||
comments AS (
|
comments AS (
|
||||||
|
Loading…
Reference in New Issue
Block a user