Not setting Not Null for required attributes in DB2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8861 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9cd021b11c
commit
ddd1a62584
@ -453,6 +453,10 @@ sub buildcreatestmt
|
||||
# will have already put in NOT NULL, if DB2 and a key
|
||||
if (!($xcatcfg =~ /^DB2:/)){ # not a db2 key
|
||||
$retv .= " NOT NULL";
|
||||
} else { # is DB2
|
||||
if (!(isAKey(\@{$descr->{keys}}, $col))) { # not a key
|
||||
$retv .= " NOT NULL";
|
||||
}
|
||||
}
|
||||
}
|
||||
$retv .= ",\n ";
|
||||
|
Loading…
Reference in New Issue
Block a user