23.03.2018 16:05, Jiří Činčura wrote:
Hi *,

what's the expected path to take when I want to execute user provided statement in the same context (connection and transaction) in external engine? Do I have to go through IExternalContext etc.

  If you ask about "expected path" - yes, you shoud use 
IExternalContext.getAttachment()
and IExternalContext.getTransaction().

or can I maybe just call isc_dsql_execute2 (and others around) with appropriate 
parameters and it's going to be fine?

  If you prefer old ISC API and its additional overhead (note, ISC API is a 
wrapper over
new OO-style API) - you may use fb_get_database_handle() and 
fb_get_transaction_handle().
For example, look at class Helper at src\include\firebird\Interface.h

Hope it helps,
Vlad

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to