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
This commit is contained in:
parent
38d396f2a6
commit
298ed86f6c
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user