- 优化 FromQuery SQL;

This commit is contained in:
2881099 2022-08-11 12:48:35 +08:00
parent c2b8650665
commit 24f456dd38

View File

@ -136,7 +136,10 @@ namespace FreeSql.Internal.CommonProvider
if (select2sp._diymemexpWithTempQuery == null)
{
if (select2sp._tableRule == null && select2sp.IsDefaultSqlContent == true)
{
rettbs[1].Table = select2sp._tables[0].Table;
return ret;
}
sql2 = select2?.ToSql(a => a, FieldAliasOptions.AsProperty);
}
else