code optimization

This commit is contained in:
sunkaixuna
2021-08-05 22:04:44 +08:00
parent 681377749c
commit bf15973052

View File

@@ -482,7 +482,7 @@ namespace SqlSugar
{
var old = result;
var regex = @"^SELECT .* FROM \(((.|\n|\r)*)\) t $";
if (this.Context.CurrentConnectionConfig.DbType .IsIn( DbType.MySql,DbType.PostgreSQL))
if (this.Context.CurrentConnectionConfig.DbType .IsIn( DbType.MySql,DbType.PostgreSQL,DbType.Sqlite))
{
result = result.Substring(0,result.Length-1);
}