Skip to content

Commit

Permalink
only calling pgtle.set_default_version if default_version is non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Dec 5, 2023
1 parent 5f6b732 commit 5da5c82
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@ begin
json_array_elements(contents) as r
loop

perform pgtle.set_default_version(rec_package_name, rec_default_ver);
if rec_default_ver is not null then
perform pgtle.set_default_version(rec_package_name, rec_default_ver);
else
raise notice using errcode='22000', message=format('DBDEV INFO: missing default version');
end if;

end loop;

Expand Down

0 comments on commit 5da5c82

Please sign in to comment.