mirror of
https://github.com/sasjs/core.git
synced 2026-01-18 05:50:06 +00:00
fix: substr issue in mp_ds2inserts. Closes #68
This commit is contained in:
3
all.sas
3
all.sas
@@ -3718,7 +3718,8 @@ data _null_;
|
|||||||
%end;
|
%end;
|
||||||
%else %if &flavour=PGSQL %then %do;
|
%else %if &flavour=PGSQL %then %do;
|
||||||
if missing(&var) then put 'NULL';
|
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 "'";
|
else put "TIMESTAMP '" &var E8601DT25.6 "'";
|
||||||
%end;
|
%end;
|
||||||
%else %do;
|
%else %do;
|
||||||
|
|||||||
@@ -152,7 +152,8 @@ data _null_;
|
|||||||
%end;
|
%end;
|
||||||
%else %if &flavour=PGSQL %then %do;
|
%else %if &flavour=PGSQL %then %do;
|
||||||
if missing(&var) then put 'NULL';
|
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 "'";
|
else put "TIMESTAMP '" &var E8601DT25.6 "'";
|
||||||
%end;
|
%end;
|
||||||
%else %do;
|
%else %do;
|
||||||
|
|||||||
Reference in New Issue
Block a user