Closed Hermit-xx closed 2 years ago
Hi @Hermit-xx - why did you close this again? Is this not relevant any more? Did you solve it (how)?
Hello @Cito , After commit this issue, I checked the package version, I found out that I was using version 1.3 when this problem appeared. Then I try to update to the latest version and that solved it ...
Thank you, glad to hear 👍
Create a pooledDB, get a connection , and set setsession argument to autocommit = 1, its ok.
BUT when the connection is Not Available, pooledDB try to get new connection, the PooledDB argument setsession is not working, it will be change to autocommit 1 to 0.
Here an example code.
Execute the code according to the following steps
show processlist
cmd get current thread id, and usekill
cmd to kill it.It can be found that autocommit does not take effect on new connecton.
This is the log of my database