From 2986895ee03158d27fc4042ca1b9927d70537c7d Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 29 Sep 2008 12:51:13 +0000 Subject: [PATCH] fix another place needs quotes for mysql git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2255 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index 0e28e39e3..2a3a5ae99 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -709,11 +709,11 @@ sub setAttribs { if (ref($keypairs{$_})) { - $cmd .= $_ . " = '" . $keypairs{$_}->[0] . "' AND "; + $cmd .= "\"$_\"" . " = '" . $keypairs{$_}->[0] . "' AND "; } else { - $cmd .= $_ . " = '" . $keypairs{$_} . "' AND "; + $cmd .= "\"$_\"" . " = '" . $keypairs{$_} . "' AND "; } } $cmd =~ s/ AND \z//;