mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 NoneParameter 无参对 byte[] 二进制拼接的 bug;#170
This commit is contained in:
		@@ -134,10 +134,7 @@ namespace FreeSql.MySql
 | 
			
		||||
                var bytes = value as byte[];
 | 
			
		||||
                var sb = new StringBuilder().Append("0x");
 | 
			
		||||
                foreach (var vc in bytes)
 | 
			
		||||
                {
 | 
			
		||||
                    if (vc < 10) sb.Append("0");
 | 
			
		||||
                    sb.Append(vc.ToString("X"));
 | 
			
		||||
                }
 | 
			
		||||
                    sb.Append(vc.ToString("X").PadLeft(2, '0'));
 | 
			
		||||
                return sb.ToString(); //val = Encoding.UTF8.GetString(val as byte[]);
 | 
			
		||||
            }
 | 
			
		||||
            else if (type == typeof(TimeSpan) || type == typeof(TimeSpan?))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user