mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 优化 AND OR 简写的表达式解析;
This commit is contained in:
@ -947,6 +947,7 @@ namespace FreeSql.Internal
|
||||
case "OR":
|
||||
if (leftMapColumn != null) left = $"{left} = {formatSql(true, null, null, null)}";
|
||||
else left = GetBoolString(left);
|
||||
if (rightMapColumn == null) rightMapColumn = SearchColumnByField(tsc._tables, tsc.currentTable, right);
|
||||
if (rightMapColumn != null) right = $"{right} = {formatSql(true, null, null, null)}";
|
||||
else right = GetBoolString(right);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user