mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 23:13:42 +08:00
Synchronization code
This commit is contained in:
parent
fe43fbc8a7
commit
e13e4245da
@ -79,7 +79,7 @@ namespace SqlSugar
|
||||
{
|
||||
ResolveUnaryExpConst(parameter, item, asName);
|
||||
}
|
||||
else if (item is BinaryExpression)
|
||||
else if (ExpressionTool.RemoveConvert(item) is BinaryExpression)
|
||||
{
|
||||
ResolveBinary(item, asName);
|
||||
}
|
||||
|
@ -261,6 +261,14 @@ namespace SqlSugar
|
||||
.Replace(sqlBuilder.SqlTranslationRight, "\\" + sqlBuilder.SqlTranslationRight)
|
||||
.Replace("\\\\","\\");
|
||||
|
||||
if (!regex.IsMatch(this.whereSql))
|
||||
{
|
||||
regex = $@"\{sqlBuilder.SqlTranslationLeft}\w+\{sqlBuilder.SqlTranslationRight}\." + sqlBuilder.GetTranslationColumnName(it.DbColumnName)
|
||||
.Replace(sqlBuilder.SqlTranslationLeft, "\\" + sqlBuilder.SqlTranslationLeft)
|
||||
.Replace(sqlBuilder.SqlTranslationRight, "\\" + sqlBuilder.SqlTranslationRight)
|
||||
.Replace("\\\\", "\\");
|
||||
}
|
||||
|
||||
this.whereSql =Regex.Replace(this.whereSql, regex,
|
||||
lastShortName + "." + sqlBuilder.GetTranslationColumnName(it.DbColumnName));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user