-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:
parent
215e7bd7e3
commit
31da9cc399
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user