mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 Firebird [Index("{tablename}_Name" 分表索引名未处理的 bug;#1346
This commit is contained in:
		@@ -64,7 +64,7 @@ namespace FreeSql.Firebird
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                _connectionString = value ?? "";
 | 
					                _connectionString = value ?? "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                var minPoolSize = 0;
 | 
					                var minPoolSize = 1;
 | 
				
			||||||
                var pattern = @"Min\s*pool\s*size\s*=\s*(\d+)";
 | 
					                var pattern = @"Min\s*pool\s*size\s*=\s*(\d+)";
 | 
				
			||||||
                var m = Regex.Match(_connectionString, pattern, RegexOptions.IgnoreCase);
 | 
					                var m = Regex.Match(_connectionString, pattern, RegexOptions.IgnoreCase);
 | 
				
			||||||
                if (m.Success)
 | 
					                if (m.Success)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -136,7 +136,7 @@ namespace FreeSql.Firebird
 | 
				
			|||||||
                        {
 | 
					                        {
 | 
				
			||||||
                            sb.Append("CREATE ");
 | 
					                            sb.Append("CREATE ");
 | 
				
			||||||
                            if (uk.IsUnique) sb.Append("UNIQUE ");
 | 
					                            if (uk.IsUnique) sb.Append("UNIQUE ");
 | 
				
			||||||
                            sb.Append("INDEX ").Append(_commonUtils.QuoteSqlName(uk.Name)).Append(" ON ").Append(createTableName).Append("(");
 | 
					                            sb.Append("INDEX ").Append(_commonUtils.QuoteSqlName(ReplaceIndexName(uk.Name, tbname))).Append(" ON ").Append(createTableName).Append("(");
 | 
				
			||||||
                            foreach (var tbcol in uk.Columns)
 | 
					                            foreach (var tbcol in uk.Columns)
 | 
				
			||||||
                            {
 | 
					                            {
 | 
				
			||||||
                                sb.Append(_commonUtils.QuoteSqlName(tbcol.Column.Attribute.Name));
 | 
					                                sb.Append(_commonUtils.QuoteSqlName(tbcol.Column.Attribute.Name));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -63,7 +63,7 @@ namespace FreeSql.MsAccess
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                _connectionString = value ?? "";
 | 
					                _connectionString = value ?? "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                var minPoolSize = 0;
 | 
					                var minPoolSize = 1;
 | 
				
			||||||
                var pattern = @"Min\s*pool\s*size\s*=\s*(\d+)";
 | 
					                var pattern = @"Min\s*pool\s*size\s*=\s*(\d+)";
 | 
				
			||||||
                var m = Regex.Match(_connectionString, pattern, RegexOptions.IgnoreCase);
 | 
					                var m = Regex.Match(_connectionString, pattern, RegexOptions.IgnoreCase);
 | 
				
			||||||
                if (m.Success)
 | 
					                if (m.Success)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -76,7 +76,7 @@ namespace FreeSql.Sqlite
 | 
				
			|||||||
            {
 | 
					            {
 | 
				
			||||||
                _connectionString = value ?? "";
 | 
					                _connectionString = value ?? "";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                var minPoolSize = 0;
 | 
					                var minPoolSize = 1;
 | 
				
			||||||
                var pattern = @"Min\s*pool\s*size\s*=\s*(\d+)";
 | 
					                var pattern = @"Min\s*pool\s*size\s*=\s*(\d+)";
 | 
				
			||||||
                var m = Regex.Match(_connectionString, pattern, RegexOptions.IgnoreCase);
 | 
					                var m = Regex.Match(_connectionString, pattern, RegexOptions.IgnoreCase);
 | 
				
			||||||
                if (m.Success)
 | 
					                if (m.Success)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user