fix changes to getAllAttributesWhere, reading all table entries

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-04-19 16:03:09 +00:00
parent f7d3b26931
commit 5e5d506704

View File

@ -2419,7 +2419,7 @@ sub getAllAttribsWhere
my $query2;
if ($xcatcfg =~ /^mysql:/) { #for mysql
$query2='SELECT * FROM ' . $self->{tabname} . ' WHERE (' . $whereclause . ") and " . q(`disable`) . " is NULL or " . q(`disable`) . " in ('0','no','NO','No','nO')";
$query2='SELECT * FROM ' . $self->{tabname} . ' WHERE (' . $whereclause . ") and (\`disable\` is NULL or \`disable\` in ('0','no','NO','No','nO'))";
$query = $self->{dbh}->prepare($query2);
} else {
if ($xcatcfg =~ /^DB2:/) { #for DB2