Skip to content

Commit

Permalink
Merge pull request #2 from rvkulikov/feature-1
Browse files Browse the repository at this point in the history
fix(Options): Fixed hardcoded true value for MV populating (#1)
  • Loading branch information
rvkulikov authored Mar 11, 2021
2 parents 0eb5bac + 3f1c4dd commit 5d228ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ declare
v_sequence text = 'deps_sequence_' || md5(random()::text);
v_verbose bool;
v_dry bool;
v_populate bool;
v_stmt text;
begin

Expand All @@ -57,6 +58,7 @@ begin
}'::jsonb || p_options;
v_verbose = (p_options->'verbose')::bool;
v_dry = (p_options->'dry_run')::bool;
v_populate = (p_options->'populate_materialized_view')::bool;

if v_verbose then
set local client_min_messages to 'debug';
Expand Down Expand Up @@ -548,7 +550,7 @@ begin
end,
trim(';' from definition),
case
when true
when v_populate
then 'WITH DATA'
else 'WITH NO DATA'
end
Expand Down

0 comments on commit 5d228ce

Please sign in to comment.