Skip to content

Commit fa5ffeb

Browse files
committed
Fix for crash when table with index is recreated N times
1 parent 9c7090d commit fa5ffeb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/dsql/DdlNodes.epp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14427,6 +14427,18 @@ void DropIndexNode::drop(thread_db* tdbb, DsqlCompilerScratch* dsqlScratch, jrd_
1442714427
END_MODIFY
1442814428
}
1442914429
END_FOR
14430+
14431+
// New deps to be created also to be renamed
14432+
auto& arr = tdbb->getTransaction()->tra_dependencies;
14433+
for (unsigned n = 0; n < arr.getCount(); ++n)
14434+
{
14435+
if (arr[n].object_name == indexName &&
14436+
(arr[n].dependency_type == obj_index_expression ||
14437+
arr[n].dependency_type == obj_index_condition))
14438+
{
14439+
arr[n].object_name.object = tempName;
14440+
}
14441+
}
1443014442
}
1443114443
END_MODIFY
1443214444
}

0 commit comments

Comments
 (0)