mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update PgSql
This commit is contained in:
parent
888472b314
commit
11660adb96
@ -20,6 +20,9 @@ namespace OrmTest
|
||||
// Demo.CodeFirst.Init();
|
||||
// Demo.Aop.Init();
|
||||
Demo.Query.Init();
|
||||
Demo.Insert.Init();
|
||||
Demo.Delete.Init();
|
||||
Demo.Update.Init();
|
||||
Demo.MasterSlave.Init();
|
||||
Demo.SharedConnection.Init();
|
||||
Demo.ExtSqlFun.Init();
|
||||
|
@ -39,7 +39,8 @@ namespace SqlSugar
|
||||
{
|
||||
return 150;
|
||||
}
|
||||
else if (this.Context is OracleExpressionContext) {
|
||||
else if (this.Context is OracleExpressionContext)
|
||||
{
|
||||
|
||||
return 401;
|
||||
}
|
||||
@ -59,7 +60,11 @@ namespace SqlSugar
|
||||
}
|
||||
else if (this.Context is OracleExpressionContext)
|
||||
{
|
||||
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
|
||||
return (HasWhere ? "AND" : "WHERE") + " ROWNUM=1";
|
||||
}
|
||||
else if (this.Context is PostgreSQLExpressionContext)
|
||||
{
|
||||
return "limit 1";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -46,7 +46,7 @@ namespace SqlSugar
|
||||
else if (isMapping)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user