mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
9efa364eb0
Handle cases when a query returns a NULL or a table with no rows, or a single row with a null value in it. This fully fixes #519 in the main branch
8 lines
227 B
PL/PgSQL
8 lines
227 B
PL/PgSQL
DROP FUNCTION IF EXISTS public.function_null;
|
|
|
|
CREATE OR REPLACE FUNCTION public.function_null(z integer, x integer, y integer) RETURNS bytea AS $$
|
|
BEGIN
|
|
RETURN null;
|
|
END
|
|
$$ LANGUAGE plpgsql IMMUTABLE STRICT PARALLEL SAFE;
|