update setAttribsWhere with delimitcol
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1e2c697419
commit
8b92d602bb
@ -1738,15 +1738,12 @@ sub setAttribsWhere
|
||||
|
||||
$query->finish();
|
||||
|
||||
my $xcatcfg =get_xcatcfg();
|
||||
#update the rows
|
||||
for my $col (keys %$elems)
|
||||
{
|
||||
if (($xcatcfg =~ /^DB2:/) || ($xcatcfg =~ /^Pg:/)) {
|
||||
$cols = $cols . "\"$col\"" . " = ?,";
|
||||
} else {
|
||||
$cols = $cols . $col . " = ?,";
|
||||
}
|
||||
# delimit the columns of the table
|
||||
my $delimitedcol = &delimitcol($col);
|
||||
$cols = $cols . $delimitedcol . " = ?,";
|
||||
push @bind, (($$elems{$col} =~ /NULL/) ? undef: $$elems{$col});
|
||||
}
|
||||
chop($cols);
|
||||
|
Loading…
Reference in New Issue
Block a user