Skip to content

Commit

Permalink
fix: quoting reserved words
Browse files Browse the repository at this point in the history
  • Loading branch information
vrh authored and vrh committed Aug 4, 2020
1 parent 8beec7d commit fc8a39b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base/mp_getddl.sas
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ run;
else if type='num' then fmt=' DOUBLE PRECISION';
else fmt='VARCHAR('!!cats(length)!!')';
if notnull='yes' then notnul=' NOT NULL';
put name fmt notnul;
/* quote column names in case they represent reserved words */
name2=quote(trim(name));
put name2 fmt notnul;
run;

/* Extra step for data constraints */
Expand Down

0 comments on commit fc8a39b

Please sign in to comment.