From 57d6581450ae37b499dc1cf8d5322f9c4bd7c24a Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 19 Feb 2010 18:55:34 +0000 Subject: [PATCH] db2 fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index 2790b14fa..be48735ff 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -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 '