fix: Void functions return null instead of empty body (#1795)
* Change empty body reponse to null for scalar functions returning void or null values * Add test for functions returning an integer with null value Co-authored-by: Laurence Isla <lau.isla.c@gmail.com>
This commit is contained in:
co-authored by
Laurence Isla
parent
9c79a4174c
commit
7f11c1a991
Vendored
+4
@@ -1051,6 +1051,10 @@ $$ language sql;
|
||||
|
||||
create function test.ret_void() returns void as '' language sql;
|
||||
|
||||
create or replace function test.ret_null() returns int as $$
|
||||
select null::int;
|
||||
$$ language sql;
|
||||
|
||||
create function test.ret_base64_bin() returns text as $$
|
||||
select i.img from test.images_base64 i where i.name = 'A.png';
|
||||
$$ language sql;
|
||||
|
||||
Reference in New Issue
Block a user