8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 03:23:04 +01:00
This commit is contained in:
AlexPeshkoff 2019-12-02 14:19:23 +03:00 committed by Alexander Peshkov
parent 938bbee174
commit 91d48a2192

View File

@ -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);
}
}