|
Alex, I was supposing that creating handle in y-valve before calling GDS attach function, and passing direct y-valve handle address to GDS argument handle would be sufficient.
It's not, and reason is related to your question about the first transaction start. GetWhyAttachment works in DSQL environment, so it don't work correctly if you didn't issued any DSQL command before. Creating temporal handle solution works, and that completely eliminates GetWhyAttachment function. It would requires we use in the engine the subsystem number 1 to create the handle. Ugly, but not a very big problem for the current code. Fixed with DSQL/engine integration.
What a nice side effect! :-)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
BTW, TRANSACTION START trigger works except first time when connecting to database. And it makes me wonder - what transaction is started during database attach and is it really worth running TRANSACTION START triggers for it?