1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-16 13:00:05 +00:00
This commit is contained in:
munja
2022-01-25 16:28:47 +01:00
parent 6e0fe0ff25
commit 90adf8dcdd
7 changed files with 18 additions and 22 deletions

View File

@@ -52,14 +52,13 @@ create table work.example2(
%mp_getpk(work,ds=example2,outds=test2)
data _null_;
set work.test1;
set work.test2;
call symputx('test2',pk_fields);
run;
%mp_assert(
iftrue=("&test2"="TX_FROM DD_TYPE"),
desc=mp_getpk gets unique constraint with NOT NULL in correct order,
outds=work.test_results
desc=mp_getpk gets unique constraint with NOT NULL in correct order
)
/* unique key without NOT NULL NOT captured */
@@ -71,8 +70,7 @@ create table work.example3(
DD_SHORTDESC char(256),
constraint unq1 unique(tx_from, dd_type),
constraint unq2 unique(tx_from, dd_type, dd_source),
constraint nnn not null(tx_from),
constraint nnnn not null(dd_type)
constraint nnn not null(tx_from)
);
%mp_getpk(work,ds=example3,outds=test3)