This commit is contained in:
2881099 2022-12-20 22:03:00 +08:00
commit 51d2a92986

View File

@ -491,13 +491,20 @@ where a.database in ({0}) and a.table in ({1})", tboldname ?? tbname);
} }
} }
string CkNullablePrimaryAdapter(string dbType, bool isPrimary)
{
return isPrimary
? dbType.Replace("Nullable(", "").Replace(")", "")
: dbType.Replace(" NOT NULL", "");
}
string CkNullableAdapter(string dbType, bool isPrimary) string CkNullableAdapter(string dbType, bool isPrimary)
{ {
return isPrimary return isPrimary
? dbType.Replace("Nullable(", "").Replace(") NOT NULL", "") ? dbType.Replace("Nullable(", "").Replace(")","").Replace(" NOT NULL", "")
: dbType.Replace(" NOT NULL", ""); : dbType.Replace(" NOT NULL", "");
} }
string CkIntAdapter(string dbType) string CkIntAdapter(string dbType)
{ {
var result = dbType; var result = dbType;