WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

Hello and thank you for the well-written report and reproduction.

Currently, SQLPage does connection pooling, but does not do anything special at the end of an HTTP request, so it can put back a connection with an open transaction to the pool.

I do agree that this behavior is not desirable. I opened issue #711 to track this.

In the meantime, I think what you are currently doing (commit; begin; at the beginning then commit at the end) is the best solution.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by bever1337
Comment options

You must be logged in to vote
2 replies
@lovasoa
Comment options

@bever1337
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants