mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update人大金
This commit is contained in:
@@ -54,6 +54,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
sql = sql.Replace("sys_", "pg_");
|
sql = sql.Replace("sys_", "pg_");
|
||||||
}
|
}
|
||||||
|
else if (IsSqlServerModel())
|
||||||
|
{
|
||||||
|
sql = sql.Replace("sys_constraint.conkey[1]", "sys_constraint.conkey{1}");
|
||||||
|
}
|
||||||
return sql;
|
return sql;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -611,6 +615,10 @@ WHERE tgrelid = '" + tableName + "'::regclass");
|
|||||||
{
|
{
|
||||||
return this.Context.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.PostgreSQL;
|
return this.Context.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.PostgreSQL;
|
||||||
}
|
}
|
||||||
|
private bool IsSqlServerModel()
|
||||||
|
{
|
||||||
|
return this.Context.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.SqlServer;
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user