pgsql distinct bug

This commit is contained in:
sunkaixuna 2021-11-21 11:15:43 +08:00
parent c75390f09e
commit 3c12bbee84

View File

@ -85,6 +85,10 @@ namespace SqlSugar
{ {
this.SelectCacheKey = this.SelectCacheKey + string.Join("-", this.JoinQueryInfos.Select(it => it.TableName)); this.SelectCacheKey = this.SelectCacheKey + string.Join("-", this.JoinQueryInfos.Select(it => it.TableName));
} }
if (IsDistinct)
{
result = "distinct "+result;
}
return result; return result;
} }
} }