mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 13:23:02 +01:00
Fixed CORE-1025.
This commit is contained in:
parent
74e3ae4fee
commit
6729422518
@ -3663,6 +3663,7 @@ static void form_rivers(thread_db* tdbb,
|
|||||||
// CVC: Notice "plan_node" is pointing to the last element in the loop above.
|
// CVC: Notice "plan_node" is pointing to the last element in the loop above.
|
||||||
// If the loop didn't execute, we had garbage in "plan_node".
|
// If the loop didn't execute, we had garbage in "plan_node".
|
||||||
|
|
||||||
|
if (temp[0] != 0) {
|
||||||
Database* dbb = tdbb->tdbb_database;
|
Database* dbb = tdbb->tdbb_database;
|
||||||
if (dbb->dbb_ods_version >= ODS_VERSION11) {
|
if (dbb->dbb_ods_version >= ODS_VERSION11) {
|
||||||
// For ODS11 and higher databases we can use new calculations
|
// For ODS11 and higher databases we can use new calculations
|
||||||
@ -3677,11 +3678,8 @@ static void form_rivers(thread_db* tdbb,
|
|||||||
sort_clause, project_clause, 0));
|
sort_clause, project_clause, 0));
|
||||||
|
|
||||||
delete innerJoin;
|
delete innerJoin;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
if (temp[0] != 0) {
|
|
||||||
do {
|
do {
|
||||||
count = find_order(tdbb, opt, temp, plan_node);
|
count = find_order(tdbb, opt, temp, plan_node);
|
||||||
} while (form_river
|
} while (form_river
|
||||||
@ -3689,6 +3687,7 @@ static void form_rivers(thread_db* tdbb,
|
|||||||
project_clause, 0));
|
project_clause, 0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static bool form_river(thread_db* tdbb,
|
static bool form_river(thread_db* tdbb,
|
||||||
|
Loading…
Reference in New Issue
Block a user