FirebirdSQL / firebird

Firebird server, client and tools
https://firebirdsql.org
1.26k stars 217 forks source link

Fix #8185 - SIGSEGV with WHERE CURRENT OF statement with statement cache turned on #8191

Open asfernandes opened 4 months ago

aafemt commented 4 months ago

BTW, where FLAG_ORPHAN is reset so reused statement won't throw "invalid handle" error?

asfernandes commented 3 months ago

BTW, where FLAG_ORPHAN is reset so reused statement won't throw "invalid handle" error?

Statement link to the cursor is established at prepare time. Once the cursor request is disposed, links are broken forever, until someone compiles another statement.