1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-09 02:10:06 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
vrh
fc8a39bbca fix: quoting reserved words 2020-08-04 18:45:00 +02:00

View File

@@ -250,7 +250,9 @@ run;
else if type='num' then fmt=' DOUBLE PRECISION'; else if type='num' then fmt=' DOUBLE PRECISION';
else fmt='VARCHAR('!!cats(length)!!')'; else fmt='VARCHAR('!!cats(length)!!')';
if notnull='yes' then notnul=' NOT NULL'; 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; run;
/* Extra step for data constraints */ /* Extra step for data constraints */