Skip to content
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

Is PreparedSqlLiteInsertCommand::executeNonQuery thread safe? #114

Open
edolphin-ydf opened this issue Feb 20, 2021 · 0 comments
Open

Is PreparedSqlLiteInsertCommand::executeNonQuery thread safe? #114

edolphin-ydf opened this issue Feb 20, 2021 · 0 comments

Comments

@edolphin-ydf
Copy link

Thanks for the execllent plugin.
I use it in a multi thread environment. I'v met a crash which point to executeNonQuery in both PreparedSqlLiteInsertCommand and SQLiteCommandclass in two different thread.
After view the code, i found that the sqlite operations were locked with _conn.SyncObject in SQLiteCommand::executeNonQuery, but it doesn't in PreparedSqlLiteInsertCommand::executeNonQuery . Were this intended or a bug?If it's ok,then why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant