-
Notifications
You must be signed in to change notification settings - Fork 333
LiteDb and SqliteDb problems #260
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
Comments
@haiduong87 Thanks for your interest in this project. We will take a look ASAP. |
When running the unit tests in a single class, all the tests can pass, but running together with 4 classes will not pass. |
I have committed the code, and the unit tests of SQLite runs well in the CI environment. It seems that there are some difference between using A preview version was published for this issue. BTW, PR is welcome, if you find out some problems, you can submit a PR to fix it. 😄 |
Hi, I'm trying to fix the provider #264 But it does not pass all tests |
Hi @catcherwong I think I found the problem, This static field is not good for "many providers" case. And so the latest code has bug too. I will make change and test again. |
- Removing static variables - Test ok
Uh oh!
There was an error while loading. Please reload this page.
Description
I've encountered concurrency problem when using LiteDb or SqliteDb
Steps to Reproduce
Related code
Expected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
Specifications
Problem with LiteDb
Problem with SqliteDb
`
public class SQLiteDatabaseProvider : ISQLiteDatabaseProvider
{
private static ConcurrentDictionary<int, SqliteConnection> _conns;
`
The text was updated successfully, but these errors were encountered: