- 增加 FreeSql.Provider.Firebird 数据库实现 #443;

This commit is contained in:
28810
2020-09-12 05:46:53 +08:00
parent 020eddb315
commit 951e917015
55 changed files with 12407 additions and 211 deletions

View File

@ -215,7 +215,6 @@ where a.table_schema in ({0}) and a.table_name in ({1})", tboldname ?? tbname);
var existsPrimary = LocalExecuteScalar(tbname[0], _commonUtils.FormatSql(" select 1 from information_schema.key_column_usage where table_schema={0} and table_name={1} and constraint_name = 'PRIMARY' limit 1", tbname));
foreach (var tbcol in tb.ColumnsByPosition)
{
var isIdentityChanged = tbcol.Attribute.IsIdentity == true && tbcol.Attribute.DbType.IndexOf("AUTO_INCREMENT", StringComparison.CurrentCultureIgnoreCase) == -1;
if (tbstruct.TryGetValue(tbcol.Attribute.Name, out var tbstructcol) ||
string.IsNullOrEmpty(tbcol.Attribute.OldName) == false && tbstruct.TryGetValue(tbcol.Attribute.OldName, out tbstructcol))
{