Skip to content

Commit

Permalink
add pgsql-http test
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice committed Aug 22, 2024
1 parent aadd726 commit 9666dd7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nix/tests/expected/pgsql-http.out
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions nix/tests/sql/pgsql-http.sql
Original file line number Diff line number Diff line change
@@ -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'
);

0 comments on commit 9666dd7

Please sign in to comment.