-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Database Locked Error #757
Comments
What is this DbAsynchronousConnection you are using? |
I looked it a bit thorougher and I have found that it could also be a known bug: #740 |
First time i works, but next time i open my app, I also get Database Locked. |
This should be fixed in the 1.6-beta. Please let me know if it is not! |
@praeclarum any updates on the 1.6 release ETA? |
I have upgraded from 1.4.118 to 1.5.231 and whenever I try to execute a scalar on an asynchronous connection, I receive an error that the database is locked. I had do downgrade to 1.4.118 and the issue is no longer present. What changed? I'm using this for a Xamarin forms project in conjunction with MVVMCross 6.2. Here is the simple method I call:
public async Task TableExists()
{
try
{
var command =
$"SELECT count(tbl_name) FROM sqlite_master WHERE type = 'table' AND name = '{typeof(T).Name}'";
var count = await DbAsynchronousConnection.ExecuteScalarAsync(command).ConfigureAwait(false);
The text was updated successfully, but these errors were encountered: