08.11.2021 17:54, Dimitry Sibiryakov wrote:

Nope, I believe the new ID must be generated also by findRequest() if the clone was found in the cache.

Will it make impossible to detect repeatable execution of a prepared statement as opposite for execution of a new one every time?

findRequest() is not used for user DSQL requests, only for procedures/functions. So the top-level statement ID will be always stable, as before.

But if/when we separate compiled (cached) statements and running statements, the ID will be reset before every execution and your question may become actual. We'll either need a different "runtime" ID or some backpointer (ID) from request to its statement.


Dmitry


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to