Skip to content

Commit

Permalink
fix: substr issue in mp_ds2inserts. Closes #68
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Bowe committed Aug 24, 2021
1 parent 9f60d82 commit f468f60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion all.sas
Original file line number Diff line number Diff line change
Expand Up @@ -3718,7 +3718,8 @@ data _null_;
%end;
%else %if &flavour=PGSQL %then %do;
if missing(&var) then put 'NULL';
%if &applydttm=YES and "%substr(&vfmt,1,8)"="DATETIME" %then %do;
%if &applydttm=YES and "%substr(&vfmt.xxxxxxxx,1,8)"="DATETIME"
%then %do;
else put "TIMESTAMP '" &var E8601DT25.6 "'";
%end;
%else %do;
Expand Down
3 changes: 2 additions & 1 deletion base/mp_ds2inserts.sas
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ data _null_;
%end;
%else %if &flavour=PGSQL %then %do;
if missing(&var) then put 'NULL';
%if &applydttm=YES and "%substr(&vfmt,1,8)"="DATETIME" %then %do;
%if &applydttm=YES and "%substr(&vfmt.xxxxxxxx,1,8)"="DATETIME"
%then %do;
else put "TIMESTAMP '" &var E8601DT25.6 "'";
%end;
%else %do;
Expand Down

0 comments on commit f468f60

Please sign in to comment.