Browse Source

MYSQL UNION SELECT LIMIT BUG

pull/12/MERGE
610262374@qq.com 6 years ago
parent
commit
636c9d49b4
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs

4
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs

@ -98,11 +98,11 @@ namespace SqlSugar
} }
public virtual string GetUnionAllSql(List<string> sqlList) public virtual string GetUnionAllSql(List<string> sqlList)
{ {
return string.Join("UNION ALL \r\n", sqlList); return string.Join(" UNION ALL \r\n", sqlList);
} }
public virtual string GetUnionSql(List<string> sqlList) public virtual string GetUnionSql(List<string> sqlList)
{ {
return string.Join("UNION \r\n", sqlList); return string.Join(" UNION \r\n", sqlList);
} }
public virtual void RepairReplicationParameters(ref string appendSql, SugarParameter[] parameters, int addIndex) public virtual void RepairReplicationParameters(ref string appendSql, SugarParameter[] parameters, int addIndex)
{ {

Loading…
Cancel
Save