From 91d48a21927532617aef2f5f3105accc213b993e Mon Sep 17 00:00:00 2001 From: AlexPeshkoff Date: Mon, 2 Dec 2019 14:19:23 +0300 Subject: [PATCH] Comment --- src/dsql/dsql.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dsql/dsql.cpp b/src/dsql/dsql.cpp index 199b953eca..b78a61b2dd 100644 --- a/src/dsql/dsql.cpp +++ b/src/dsql/dsql.cpp @@ -2176,11 +2176,16 @@ static UCHAR* var_info(const dsql_msg* message, if (param->par_index >= first_index) { dsc desc = param->par_desc; + + // Scan sources of coercion rules in reverse order to observe + // 'last entered in use' rule. Start with dynamic binding rules ... if (!attachment->att_bindings.coerce(&desc)) { + // next - given in DPB ... if (!attachment->getInitialBindings()->coerce(&desc)) { Database* dbb = tdbb->getDatabase(); + // and finally - rules from .conf files. dbb->getBindings()->coerce(&desc, dbb->dbb_compatibility_index); } }