mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	more db2 fixes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5201 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -1426,11 +1426,18 @@ sub setAttribs | ||||
|         $action = "u"; | ||||
|         for my $col (keys %$elems) | ||||
|         { | ||||
|             $cols = $cols . $col . " = ?,"; | ||||
|            if ($xcatcfg =~ /^DB2:/) {  #for DB2  | ||||
|              my $colsq = q(") . $col . q(");  # quote columns | ||||
|              $cols = $cols . $colsq . " = ?,"; | ||||
|            } else { | ||||
|              $cols = $cols . $col . " = ?,"; | ||||
|            } | ||||
|             push @bind, (($$elems{$col} =~ /NULL/) ? undef: $$elems{$col}); | ||||
|         } | ||||
|         chop($cols); | ||||
|         my $cmd = "UPDATE " . $self->{tabname} . " set $cols where "; | ||||
|         my $cmd ; | ||||
|  | ||||
|         $cmd = "UPDATE " . $self->{tabname} . " set $cols where "; | ||||
|         foreach (keys %keypairs) | ||||
|         { | ||||
|             if (ref($keypairs{$_})) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user