mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 09:15:27 +08:00 
			
		
		
		
	- 修复 Firebird Embedded 版本系统表 isidentity_type 兼容问题;
This commit is contained in:
		@@ -35,6 +35,29 @@ namespace FreeSql.Firebird
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public bool IsFirebird2_5 => ServerVersion.Contains("Firebird 2.5");
 | 
			
		||||
        public string ServerVersion
 | 
			
		||||
        {
 | 
			
		||||
            get
 | 
			
		||||
            {
 | 
			
		||||
                if (string.IsNullOrEmpty(_serverVersion) && MasterPool != null)
 | 
			
		||||
                    using (var conn = MasterPool.Get())
 | 
			
		||||
                    {
 | 
			
		||||
                        try
 | 
			
		||||
                        {
 | 
			
		||||
                            _serverVersion = conn.Value.ServerVersion;
 | 
			
		||||
                        }
 | 
			
		||||
                        catch
 | 
			
		||||
                        {
 | 
			
		||||
                            _serverVersion = "3.0.0";
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                return _serverVersion;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        string _serverVersion;
 | 
			
		||||
 | 
			
		||||
        public override object AddslashesProcessParam(object param, Type mapType, ColumnInfo mapColumn)
 | 
			
		||||
        {
 | 
			
		||||
            if (param == null) return "NULL";
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user