PR review improvements
This commit is contained in:
@@ -34,7 +34,7 @@ AS $$
|
|||||||
DECLARE
|
DECLARE
|
||||||
internal_server_name text := format('%s%s', @extschema@.__CDB_FS_Name_Pattern(), input_name);
|
internal_server_name text := format('%s%s', @extschema@.__CDB_FS_Name_Pattern(), input_name);
|
||||||
BEGIN
|
BEGIN
|
||||||
IF input_name IS NULL THEN
|
IF input_name IS NULL OR char_length(input_name) = 0 THEN
|
||||||
RAISE EXCEPTION 'Server name cannot be NULL';
|
RAISE EXCEPTION 'Server name cannot be NULL';
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
@@ -381,7 +381,7 @@ BEGIN
|
|||||||
ORDER BY 1;
|
ORDER BY 1;
|
||||||
END
|
END
|
||||||
$$
|
$$
|
||||||
LANGUAGE PLPGSQL IMMUTABLE PARALLEL SAFE;
|
LANGUAGE PLPGSQL VOLATILE PARALLEL SAFE;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
|||||||
Reference in New Issue
Block a user