more fixes to support mysql, chtab key=test site -d gives error

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2009-01-15 17:47:54 +00:00
parent e5c3267933
commit 2aa7ab36dc

View File

@ -1582,7 +1582,8 @@ sub delEntries
my @qargs = ();
foreach (keys %keypairs)
{
$qstring .= "$_ = ? AND ";
$qstring .= "\"$_\" = ? AND "; #mysql change
#$qstring .= "$_ = ? AND ";
push @qargs, $keypairs{$_};
}
$qstring =~ s/ AND \z//;
@ -1605,7 +1606,8 @@ sub delEntries
if ($keyref) { $delstring .= ' WHERE '; }
foreach (keys %keypairs)
{
$delstring .= $_ . ' = ? AND ';
#$delstring .= $_ . ' = ? AND ';
$delstring .= "\"$_\"" . ' = ? AND '; #mysql change
if (ref($keypairs{$_}))
{ #XML transformed data may come in mangled unreasonably into listrefs
push @stargs, $keypairs{$_}->[0];