mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 02:44:58 +08:00
code optimization
This commit is contained in:
@@ -482,7 +482,7 @@ namespace SqlSugar
|
||||
{
|
||||
var old = result;
|
||||
var regex = @"^SELECT .* FROM \(((.|\n|\r)*)\) t $";
|
||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.MySql)
|
||||
if (this.Context.CurrentConnectionConfig.DbType .IsIn( DbType.MySql,DbType.PostgreSQL))
|
||||
{
|
||||
result = result.Substring(0,result.Length-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user