- 修复 Enum -> MapType(string) + GroupBy 解析问题;#1727

This commit is contained in:
2881099
2024-01-26 19:33:49 +08:00
parent 2598451261
commit 2a2be54986
7 changed files with 20 additions and 135 deletions

View File

@ -36,11 +36,11 @@ ORDER BY b.""Name"", b.""ID""", people1);
.ToSql();
Assert.Equal(@"SELECT *
FROM (
SELECT replace(replace(a.""Name"", ' ', ''), ' ', '') ""xm_new"", a.""CSNY"" ""csny""
SELECT replace(replace(a.""Name"", ' ', ''), ' ', '') ""xm"", a.""CSNY"" ""csny""
FROM ""people_issues_1237"" a
GROUP BY replace(replace(a.""Name"", ' ', ''), ' ', ''), a.""CSNY""
HAVING (count(1) > 1) ) a
INNER JOIN ""people_issues_1237"" b ON a.""xm_new"" = replace(replace(b.""Name"", ' ', ''), ' ', '') AND a.""csny"" = b.""CSNY""
INNER JOIN ""people_issues_1237"" b ON a.""xm"" = replace(replace(b.""Name"", ' ', ''), ' ', '') AND a.""csny"" = b.""CSNY""
ORDER BY b.""Name"", b.""ID""", people2);
}