Skip to content

Allow for skipping prepared statements. #13

Open

Description

@thezerobit

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.

Activity

  1. ryanrolds commented on Aug 20, 2023

    @ryanrolds
    Owner

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

  2. thezerobit commented on Aug 22, 2023

    @thezerobit
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions