mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user