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:
lissav 2011-02-16 20:20:46 +00:00
parent 9cd021b11c
commit ddd1a62584

View File

@ -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 ";