From 9666dd7afa8e999b0269487343930ad78e96c006 Mon Sep 17 00:00:00 2001 From: Oliver Rice Date: Thu, 22 Aug 2024 12:42:07 -0500 Subject: [PATCH] add pgsql-http test --- nix/tests/expected/pgsql-http.out | 14 ++++++++++++++ nix/tests/sql/pgsql-http.sql | 9 +++++++++ 2 files changed, 23 insertions(+) create mode 100644 nix/tests/expected/pgsql-http.out create mode 100644 nix/tests/sql/pgsql-http.sql diff --git a/nix/tests/expected/pgsql-http.out b/nix/tests/expected/pgsql-http.out new file mode 100644 index 000000000..36f600a1a --- /dev/null +++ b/nix/tests/expected/pgsql-http.out @@ -0,0 +1,14 @@ +select + urlencode('my special string''s & things?'); + urlencode +------------------------------------- + my+special+string%27s+%26+things%3F +(1 row) + +select + content +from + http_get ( + 'https://postman-echo.com/get?foo1=bar1&foo2=bar2' + ); +ERROR: OpenSSL/3.0.13: error:16000069:STORE routines::unregistered scheme diff --git a/nix/tests/sql/pgsql-http.sql b/nix/tests/sql/pgsql-http.sql new file mode 100644 index 000000000..5c50bc80e --- /dev/null +++ b/nix/tests/sql/pgsql-http.sql @@ -0,0 +1,9 @@ +select + urlencode('my special string''s & things?'); + +select + content +from + http_get ( + 'https://postman-echo.com/get?foo1=bar1&foo2=bar2' + );