mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- continue
This commit is contained in:
		@@ -186,12 +186,7 @@ namespace FreeSql.PostgreSQL
 | 
			
		||||
            value = getParamterValue(type, value);
 | 
			
		||||
            var type2 = value.GetType();
 | 
			
		||||
            if (type2 == typeof(byte[])) return $"'\\x{CommonUtils.BytesSqlRaw(value as byte[])}'";
 | 
			
		||||
            if (type2 == typeof(TimeSpan) || type2 == typeof(TimeSpan?))
 | 
			
		||||
            {
 | 
			
		||||
                var ts = (TimeSpan)value;
 | 
			
		||||
                return $"'{Math.Min(24, (int)Math.Floor(ts.TotalHours))}:{ts.Minutes}:{ts.Seconds}'";
 | 
			
		||||
            }
 | 
			
		||||
            else if (value is Array)
 | 
			
		||||
            if (value is Array)
 | 
			
		||||
            {
 | 
			
		||||
                var valueArr = value as Array;
 | 
			
		||||
                var eleType = type2.GetElementType();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user