-Fix problem where invalid SQL was generated in previous Table update

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-08-27 21:19:18 +00:00
parent 215e7bd7e3
commit 31da9cc399

View File

@ -646,7 +646,7 @@ sub setAttribs
#$qstring .= "$_ = ? AND "; #mysql changes
#push @qargs, $keypairs{$_};
$qstring .= "\"$_\" = ? AND ";
push @qargs, "\"$keypairs{$_}\"";
push @qargs, $keypairs{$_};
}
$qstring =~ s/ AND \z//;
my $query = $self->{dbh}->prepare($qstring);