- 优化 FromQuery SQL 生成;

This commit is contained in:
2881099
2022-08-11 11:29:42 +08:00
parent 24e28a8c1b
commit 79e62eeab3
3 changed files with 6 additions and 13 deletions

View File

@ -133,8 +133,12 @@ namespace FreeSql.Internal.CommonProvider
(_diymemexpWithTempQuery as WithTempQueryParser)?.Append(select2, rettbs[1]);
var select2sp = select2 as Select0Provider;
string sql2 = null;
if (select2sp._diymemexpWithTempQuery == null)
if (select2sp._diymemexpWithTempQuery == null)
{
if (select2sp._tableRule == null && select2sp.IsDefaultSqlContent == true)
return ret;
sql2 = select2?.ToSql(a => a, FieldAliasOptions.AsProperty);
}
else
{
if (select2sp._tableRule != null && select2sp.IsDefaultSqlContent == true)