- 修复 v3.2.700 Oracle Exists 子查询 bug;

This commit is contained in:
2881099 2023-09-08 11:16:51 +08:00
parent 939bcb1005
commit 0ec5bc7715
5 changed files with 10 additions and 10 deletions

View File

@ -57,8 +57,8 @@ namespace FreeSql.Custom.Oracle
if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) && if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) &&
string.IsNullOrEmpty(tbsfrom[b].On) && string.IsNullOrEmpty(tbsfrom[b].On) &&
string.IsNullOrEmpty(tbsfrom[b].Cascade) && string.IsNullOrEmpty(tbsfrom[b].Cascade) &&
string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sb.Append(" ON 1 = 1"); string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sbunion.Append(" ON 1 = 1");
else sb.Append(" ON ").Append(string.Join(" AND ", new[] else sbunion.Append(" ON ").Append(string.Join(" AND ", new[]
{ {
tbsfrom[b].CascadeBefore, tbsfrom[b].CascadeBefore,
tbsfrom[b].NavigateCondition ?? tbsfrom[b].On, tbsfrom[b].NavigateCondition ?? tbsfrom[b].On,

View File

@ -56,8 +56,8 @@ namespace FreeSql.Dameng.Curd
if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) && if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) &&
string.IsNullOrEmpty(tbsfrom[b].On) && string.IsNullOrEmpty(tbsfrom[b].On) &&
string.IsNullOrEmpty(tbsfrom[b].Cascade) && string.IsNullOrEmpty(tbsfrom[b].Cascade) &&
string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sb.Append(" ON 1 = 1"); string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sbunion.Append(" ON 1 = 1");
else sb.Append(" ON ").Append(string.Join(" AND ", new[] else sbunion.Append(" ON ").Append(string.Join(" AND ", new[]
{ {
tbsfrom[b].CascadeBefore, tbsfrom[b].CascadeBefore,
tbsfrom[b].NavigateCondition ?? tbsfrom[b].On, tbsfrom[b].NavigateCondition ?? tbsfrom[b].On,

View File

@ -56,8 +56,8 @@ namespace FreeSql.Odbc.Dameng
if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) && if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) &&
string.IsNullOrEmpty(tbsfrom[b].On) && string.IsNullOrEmpty(tbsfrom[b].On) &&
string.IsNullOrEmpty(tbsfrom[b].Cascade) && string.IsNullOrEmpty(tbsfrom[b].Cascade) &&
string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sb.Append(" ON 1 = 1"); string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sbunion.Append(" ON 1 = 1");
else sb.Append(" ON ").Append(string.Join(" AND ", new[] else sbunion.Append(" ON ").Append(string.Join(" AND ", new[]
{ {
tbsfrom[b].CascadeBefore, tbsfrom[b].CascadeBefore,
tbsfrom[b].NavigateCondition ?? tbsfrom[b].On, tbsfrom[b].NavigateCondition ?? tbsfrom[b].On,

View File

@ -56,8 +56,8 @@ namespace FreeSql.Odbc.Oracle
if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) && if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) &&
string.IsNullOrEmpty(tbsfrom[b].On) && string.IsNullOrEmpty(tbsfrom[b].On) &&
string.IsNullOrEmpty(tbsfrom[b].Cascade) && string.IsNullOrEmpty(tbsfrom[b].Cascade) &&
string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sb.Append(" ON 1 = 1"); string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sbunion.Append(" ON 1 = 1");
else sb.Append(" ON ").Append(string.Join(" AND ", new[] else sbunion.Append(" ON ").Append(string.Join(" AND ", new[]
{ {
tbsfrom[b].CascadeBefore, tbsfrom[b].CascadeBefore,
tbsfrom[b].NavigateCondition ?? tbsfrom[b].On, tbsfrom[b].NavigateCondition ?? tbsfrom[b].On,

View File

@ -57,8 +57,8 @@ namespace FreeSql.Oracle.Curd
if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) && if (string.IsNullOrEmpty(tbsfrom[b].NavigateCondition) &&
string.IsNullOrEmpty(tbsfrom[b].On) && string.IsNullOrEmpty(tbsfrom[b].On) &&
string.IsNullOrEmpty(tbsfrom[b].Cascade) && string.IsNullOrEmpty(tbsfrom[b].Cascade) &&
string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sb.Append(" ON 1 = 1"); string.IsNullOrEmpty(tbsfrom[b].CascadeBefore)) sbunion.Append(" ON 1 = 1");
else sb.Append(" ON ").Append(string.Join(" AND ", new[] else sbunion.Append(" ON ").Append(string.Join(" AND ", new[]
{ {
tbsfrom[b].CascadeBefore, tbsfrom[b].CascadeBefore,
tbsfrom[b].NavigateCondition ?? tbsfrom[b].On, tbsfrom[b].NavigateCondition ?? tbsfrom[b].On,