mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Update 人大金仓 default value
This commit is contained in:
parent
f52047479d
commit
554e6f4f53
@ -478,6 +478,15 @@ WHERE tgrelid = '" + tableName + "'::regclass");
|
||||
string tableString = string.Format(this.CreateTableSql, this.SqlBuilder.GetTranslationTableName(tableName.ToUpper(IsUpper)), string.Join(",\r\n", columnArray));
|
||||
return tableString;
|
||||
}
|
||||
protected override bool IsAnyDefaultValue(string tableName, string columnName, List<DbColumnInfo> columns)
|
||||
{
|
||||
var defaultValue = columns.Where(it => it.DbColumnName.Equals(columnName, StringComparison.CurrentCultureIgnoreCase)).First().DefaultValue;
|
||||
if (defaultValue?.StartsWith("NULL::") == true)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return defaultValue.HasValue();
|
||||
}
|
||||
public override bool IsAnyConstraint(string constraintName)
|
||||
{
|
||||
throw new NotSupportedException("PgSql IsAnyConstraint NotSupportedException");
|
||||
|
@ -430,6 +430,15 @@ WHERE tgrelid = '"+tableName+"'::regclass");
|
||||
this.Context.Ado.ExecuteCommand(sql);
|
||||
return true;
|
||||
}
|
||||
protected override bool IsAnyDefaultValue(string tableName, string columnName, List<DbColumnInfo> columns)
|
||||
{
|
||||
var defaultValue = columns.Where(it => it.DbColumnName.Equals(columnName, StringComparison.CurrentCultureIgnoreCase)).First().DefaultValue;
|
||||
if (defaultValue?.StartsWith("NULL::") == true)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return defaultValue.HasValue();
|
||||
}
|
||||
protected override string GetCreateTableSql(string tableName, List<DbColumnInfo> columns)
|
||||
{
|
||||
List<string> columnArray = new List<string>();
|
||||
|
Loading…
Reference in New Issue
Block a user