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

Backported partial bugfix for CORE-1105.

This commit is contained in:
dimitr 2007-02-21 11:16:15 +00:00
parent 412c4c08c7
commit 56031310c2

View File

@ -748,7 +748,7 @@ ISC_STATUS GDS_ATTACH_DATABASE(ISC_STATUS* user_status,
}
tdbb->tdbb_attachment = attachment = FB_NEW(*dbb->dbb_permanent) Attachment(dbb);
attachment->att_filename = expanded_name;
attachment->att_filename = is_alias ? file_name : expanded_name;
attachment->att_network_protocol = options.dpb_network_protocol;
attachment->att_remote_address = options.dpb_remote_address;
@ -1858,7 +1858,7 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status,
}
tdbb->tdbb_attachment = attachment = FB_NEW(*dbb->dbb_permanent) Attachment(dbb);
attachment->att_filename = expanded_name;
attachment->att_filename = is_alias ? file_name : expanded_name;
attachment->att_network_protocol = options.dpb_network_protocol;
attachment->att_remote_address = options.dpb_remote_address;
attachment->att_next = dbb->dbb_attachments;