On 2019-12-05 13:39, Tony Whyman wrote:
IBX's Firebird Pascal API uses the IProvider interface to get an
attachment.
It uses IAttachment to get a transaction (single database) or
IDtc/IDtcStart for a multi-database transaction.
Tony, that's absolutely OK for regular API calls. Such interfaces may be
detached/committed/rolled-back. But as far as I understood Jiri deals
with external function, and in that case attachment and transaction
interfaces are obtained from function context, and they should be
released by "release()" when not needed any more.
On 05/12/2019 10:31, Jiří Činčura wrote:
3. A transaction (ITransaction) is disposed of with a "release"
4. An attachment (IAttachment) is disposed of with a "detach".
Interesting. I'm getting the transaction and attachment from the
IExternalContext which si probaby slightly different. And now I'm
wondering whether I should release those two at all. I suppose only
core guys can tell me for sure.
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel