diff --git a/nix/tests/expected/pg_net.out b/nix/tests/expected/pg_net.out new file mode 100644 index 000000000..6b3ca5b4b --- /dev/null +++ b/nix/tests/expected/pg_net.out @@ -0,0 +1,11 @@ +-- This is a very basic test because you can't get the value returned +-- by a pg_net request in the same transaction that created it; +select + net.http_get ( + 'https://postman-echo.com/get?foo1=bar1&foo2=bar2' + ) as request_id; + request_id +------------ + 1 +(1 row) + diff --git a/nix/tests/sql/pg_net.sql b/nix/tests/sql/pg_net.sql new file mode 100644 index 000000000..bf44db5a3 --- /dev/null +++ b/nix/tests/sql/pg_net.sql @@ -0,0 +1,7 @@ +-- This is a very basic test because you can't get the value returned +-- by a pg_net request in the same transaction that created it; + +select + net.http_get ( + 'https://postman-echo.com/get?foo1=bar1&foo2=bar2' + ) as request_id;