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

Avoid random generation of field IDs, respect the user-specified order instead

This commit is contained in:
Dmitry Yemanov 2023-01-26 14:54:04 +03:00
parent 4840282f6f
commit 2ed48a62c6

View File

@ -5718,6 +5718,7 @@ static bool make_version(thread_db* tdbb, SSHORT phase, DeferredWork* work, jrd_
FLD IN RDB$FIELDS WITH
RFR.RDB$RELATION_NAME EQ work->dfw_name.c_str() AND
RFR.RDB$FIELD_SOURCE EQ FLD.RDB$FIELD_NAME
SORTED BY RFR.RDB$FIELD_POSITION
{
// Update RFR to reflect new fields id