On 07/24/14 20:49, Dimitry Sibiryakov wrote: > 24.07.2014 18:39, Mark Rotteveel wrote: >> A cursor name should remain set for the lifetime of the statement, >> unless it is explicitly set to a different value. > Ok. If there is two statements: one with cursor name and other using > WHERE CURRENT OF, > what should happen is the first statement is closed, unprepared and then > prepared with > different SQL text - completely different select from different table? >
In new API it's impossible - there are no explicit allocate and unprepare operations. Statement may be prepared by attachment and there are no other ways to obtain IStatement interface. After it statement always exists in prepared state. When done statement is freed, that means unprepared and certainly associated cursor name will be gone. ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel