Update cross join

This commit is contained in:
sunkaixuan
2024-01-08 16:53:22 +08:00
parent 2a4926352b
commit 8b39fc64c5

View File

@@ -683,7 +683,9 @@ namespace SqlSugar
}
if (joinInfo.JoinType == JoinType.Cross)
{
result = result.Replace(" ON ", " WHERE ");
var onIndex=result.IndexOf(" ON ");
result = result.Substring(0,onIndex);
}
return result;
}