-
-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using with goroutines #285
Comments
I've been able to reproduce the issue (it is sometimes inconsistent but happens often enough). I've added a test case on a branch and am going to dig into the issue further over the next few days. |
The issue seems to be related to how Golang handles prepared statements. From the docs:
At this point I'm thinking about adding a flag similar to |
Tried to fix it, but with my limited knowledge of codebase. Please give it a look. |
Shouldn't |
There are three changes pending on this issue could someone take a look at which one to go with, seems both the PRs are doing same thing: and @JessieAMorris has written really good tests on #288 |
Hi, having trouble with using go routines.
sqlmock version 1.5.0
below is the code when functions run serial no error occurs but panics when used with goroutines.
🖊️ update:
second script works, which does not use prepared statements
The text was updated successfully, but these errors were encountered: