mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 增加 fsql.Insert(Dictionary<string, object>) 无实体类插入方法;#481
This commit is contained in:
		@@ -49,10 +49,10 @@ namespace FreeSql.Odbc.PostgreSQL
 | 
			
		||||
        OdbcType GetOdbcType(DbColumnInfo column)
 | 
			
		||||
        {
 | 
			
		||||
            var dbtype = column.DbTypeText;
 | 
			
		||||
            var isarray = dbtype.EndsWith("[]");
 | 
			
		||||
            var isarray = dbtype?.EndsWith("[]") == true;
 | 
			
		||||
            if (isarray) dbtype = dbtype.Remove(dbtype.Length - 2);
 | 
			
		||||
            OdbcType ret = OdbcType.VarChar;
 | 
			
		||||
            switch (dbtype.ToLower().TrimStart('_'))
 | 
			
		||||
            switch (dbtype?.ToLower().TrimStart('_'))
 | 
			
		||||
            {
 | 
			
		||||
                case "int2": ret = OdbcType.SmallInt; break;
 | 
			
		||||
                case "int4": ret = OdbcType.Int; break;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user