mirror of
https://github.com/maplibre/martin.git
synced 2024-12-20 13:21:59 +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
7 lines
258 B
PL/PgSQL
7 lines
258 B
PL/PgSQL
DROP FUNCTION IF EXISTS public.function_null_row;
|
|
|
|
CREATE OR REPLACE FUNCTION public.function_null_row(z integer, x integer, y integer)
|
|
RETURNS TABLE(mvt bytea, key text) AS $$
|
|
SELECT NULL::bytea, NULL::text
|
|
$$ LANGUAGE sql IMMUTABLE STRICT PARALLEL SAFE;
|