mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 16:18:47 +08:00
Update PgSql
This commit is contained in:
parent
888472b314
commit
11660adb96
@ -20,6 +20,9 @@ namespace OrmTest
|
|||||||
// Demo.CodeFirst.Init();
|
// Demo.CodeFirst.Init();
|
||||||
// Demo.Aop.Init();
|
// Demo.Aop.Init();
|
||||||
Demo.Query.Init();
|
Demo.Query.Init();
|
||||||
|
Demo.Insert.Init();
|
||||||
|
Demo.Delete.Init();
|
||||||
|
Demo.Update.Init();
|
||||||
Demo.MasterSlave.Init();
|
Demo.MasterSlave.Init();
|
||||||
Demo.SharedConnection.Init();
|
Demo.SharedConnection.Init();
|
||||||
Demo.ExtSqlFun.Init();
|
Demo.ExtSqlFun.Init();
|
||||||
|
@ -39,7 +39,8 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return 150;
|
return 150;
|
||||||
}
|
}
|
||||||
else if (this.Context is OracleExpressionContext) {
|
else if (this.Context is OracleExpressionContext)
|
||||||
|
{
|
||||||
|
|
||||||
return 401;
|
return 401;
|
||||||
}
|
}
|
||||||
@ -61,6 +62,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return (HasWhere ? "AND" : "WHERE") + " ROWNUM=1";
|
return (HasWhere ? "AND" : "WHERE") + " ROWNUM=1";
|
||||||
}
|
}
|
||||||
|
else if (this.Context is PostgreSQLExpressionContext)
|
||||||
|
{
|
||||||
|
return "limit 1";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return "limit 0,1";
|
return "limit 0,1";
|
||||||
|
@ -46,7 +46,7 @@ namespace SqlSugar
|
|||||||
else if (isMapping)
|
else if (isMapping)
|
||||||
{
|
{
|
||||||
var mappingInfo = this.MappingTables.FirstOrDefault(it => it.EntityName.Equals(entityName, StringComparison.CurrentCultureIgnoreCase));
|
var mappingInfo = this.MappingTables.FirstOrDefault(it => it.EntityName.Equals(entityName, StringComparison.CurrentCultureIgnoreCase));
|
||||||
return SqlTranslationLeft + (mappingInfo == null ? entityName : mappingInfo.DbTableName) + SqlTranslationRight;
|
return SqlTranslationLeft + (mappingInfo == null ? entityName : mappingInfo.DbTableName).ToLower() + SqlTranslationRight;
|
||||||
}
|
}
|
||||||
else if (isComplex)
|
else if (isComplex)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user