diff --git a/Src/Asp.Net/MySqlTest/UnitTest/UCustom20.cs b/Src/Asp.Net/MySqlTest/UnitTest/UCustom20.cs index 52f3990f7..2dcda6d3b 100644 --- a/Src/Asp.Net/MySqlTest/UnitTest/UCustom20.cs +++ b/Src/Asp.Net/MySqlTest/UnitTest/UCustom20.cs @@ -40,7 +40,7 @@ namespace OrmTest .Where(x => x.IpfCode == "" && x.PmId == pm1.Id) .Select(x => SqlFunc.AggregateSum(SqlFunc.ToDecimal(x.SbrAmount)))) }).ToSqlString(); - if (!sql.Contains("`bil_payment` pm1")) + if (!sql.Contains("`bil_payment` `pm1`")) { throw new Exception("unit error"); } diff --git a/Src/Asp.Net/SqliteTest/UnitTest/UCustom01.cs b/Src/Asp.Net/SqliteTest/UnitTest/UCustom01.cs index 44006371d..f3e6ca7ff 100644 --- a/Src/Asp.Net/SqliteTest/UnitTest/UCustom01.cs +++ b/Src/Asp.Net/SqliteTest/UnitTest/UCustom01.cs @@ -56,7 +56,7 @@ namespace OrmTest .Having(cs => cs.PmAmount != 0) .ToSql(); - if (!sql.Key.Contains("`bil_costshare` cs")) + if (!sql.Key.Contains("`bil_costshare` `cs`")) { throw new Exception("unit error"); }