From 636c9d49b4ac11d74c69d3aa196153c57f61d415 Mon Sep 17 00:00:00 2001 From: "610262374@qq.com" <610262374@qq.com> Date: Fri, 14 Dec 2018 18:00:03 +0800 Subject: [PATCH] MYSQL UNION SELECT LIMIT BUG --- .../Abstract/SqlBuilderProvider/SqlBuilderProvider.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs index d81d548d3..40b183acd 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs @@ -98,11 +98,11 @@ namespace SqlSugar } public virtual string GetUnionAllSql(List sqlList) { - return string.Join("UNION ALL \r\n", sqlList); + return string.Join(" UNION ALL \r\n", sqlList); } public virtual string GetUnionSql(List 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) {