mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	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:
		@@ -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}},
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user