8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 22:03:03 +01:00

Postfix for CORE-2284/CORE-5677, fixes regression CORE-5756

This commit is contained in:
Dmitry Yemanov 2018-02-21 10:48:37 +03:00
parent 69ebe007b2
commit bfb008f4e9

View File

@ -3554,7 +3554,8 @@ static bool create_relation(thread_db* tdbb, SSHORT phase, DeferredWork* work, j
FOR(REQUEST_HANDLE request)
X IN RDB$RELATIONS WITH
X.RDB$RELATION_NAME EQ work->dfw_name.c_str()
X.RDB$RELATION_NAME EQ work->dfw_name.c_str() AND
X.RDB$RELATION_ID NOT MISSING
{
rel_id = X.RDB$RELATION_ID;
if ( (relation = MET_lookup_relation_id(tdbb, rel_id, false)) )