sqlclosecheck icon indicating copy to clipboard operation
sqlclosecheck copied to clipboard

Allow for skipping prepared statements.

Open thezerobit opened this issue 4 years ago • 2 comments

Prepared statements can live as long as the connection and be reused over and over and then closed much later. In that scenario, it would be nice to be able to allow prepared statements to not be closed in the same function that they are created in.

thezerobit avatar May 22 '21 00:05 thezerobit

Sorry about not responding sooner. Please provide a test case (example), and I will look into it.

ryanrolds avatar Aug 20 '23 19:08 ryanrolds

I've changed jobs since I filed this ticket and no longer have access to the source code. From memory, I think we close the statements on program exit, which is to say, not a simple defer. If you don't care about this case, feel free to close this ticket. I'm not really working in Go at this point, so I'm not going to be able to contribute here.

thezerobit avatar Aug 22 '23 15:08 thezerobit