nodels and nodech now report errors on any unrecognizable table.column specifications

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@653 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-03-03 21:00:13 +00:00
parent 050c712c01
commit 21c20c6068

View File

@ -593,6 +593,10 @@ sub nodech
{
($table, $column) = split('\.', $temp, 2);
}
unless (grep /$column/,@{$xCAT::Schema::tabspec{$table}->{cols}}) {
$callback->({error=>"$table.$column not a valid table.column description",errorcode=>[1]});
return;
}
$tables{$table}->{$column} = [$value, $op];
}
foreach $tab (keys %tables)
@ -795,6 +799,10 @@ sub nodels
{
($table, $column) = split('\.', $temp, 2);
}
unless (grep /$column/,@{$xCAT::Schema::tabspec{$table}->{cols}}) {
$callback->({error=>"$table.$column not a valid table.column description",errorcode=>[1]});
next;
}
unless (grep /^$column$/, @{$tables{$table}})
{
push @{$tables{$table}},