From 298ed86f6cd7af35d171172826b99409574789d3 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 5 Apr 2010 19:42:12 +0000 Subject: [PATCH] fix syntax error in mysql path of getAllAttribsWhere routine git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5673 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index e957aa476..f569f2734 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -2413,13 +2413,11 @@ sub getAllAttribsWhere my @attribs = @_; my @results = (); my $query; + my $query2; + $query2='SELECT * FROM ' . $self->{tabname} . ' WHERE (' . $whereclause . ") and " . q(`disable`) . " is NULL or " . q(`disable`) . " in ('0','no','NO','No','nO')"; + if ($xcatcfg =~ /^mysql:/) { #for mysql - $query = $self->{dbh}->prepare('SELECT * FROM ' - . $self->{tabname} - . ' WHERE (' - . $whereclause - . ") and " - . q(`disable`) . " is NULL or " . q(`disable`) . " in ('0','no','NO','No','nO'))"); + $query = $self->{dbh}->prepare($query2); } else { if ($xcatcfg =~ /^DB2:/) { #for DB2 $query = $self->{dbh}->prepare('SELECT * FROM '