git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2010-02-19 18:55:34 +00:00
parent 91cc6ff09d
commit 57d6581450

View File

@ -2473,10 +2473,10 @@ sub getAllNodeAttribs
. " WHERE " . q(`disable`) . " is NULL or " . q(`disable`) . " in ('0','no','NO','No','nO')");
} else {
if ($xcatcfg =~ /^DB2:/) { #for DB2
$query = $self->{dbh}->prepare('SELECT \"node\" FROM '
. $self->{tabname}
. " WHERE \"disable\" is NULL OR \"disable\" LIKE '0' OR \"disable\" LIKE 'no' OR \"disable\" LIKE 'NO' OR \"disable\" LIKE 'No' OR \"disable\" LIKE 'nO')");
my $qstring = "Select \"node\" FROM ";
$qstring .= $self->{tabname};
$qstring .= " WHERE \"disable\" is NULL OR \"disable\" LIKE '0' OR \"disable\" LIKE 'no' OR \"disable\" LIKE 'NO' OR \"disable\" LIKE 'No' OR \"disable\" LIKE 'nO'";
$query = $self->{dbh}->prepare($qstring);
} else { # for other dbs
$query =
$self->{dbh}->prepare('SELECT node FROM '