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

pragma_update fails with ExecuteReturnedResults #792

Closed
dae opened this issue Aug 17, 2020 · 4 comments
Closed

pragma_update fails with ExecuteReturnedResults #792

dae opened this issue Aug 17, 2020 · 4 comments
Labels

Comments

@dae
Copy link
Contributor

dae commented Aug 17, 2020

The following code works on 0.23.1, but fails in current master. Was this an unintended change, or should I change my existing code to use pragma_update_and_check()?

use rusqlite;

fn main() {
    let db = rusqlite::Connection::open_in_memory().unwrap();
    db.pragma_update(None, "locking_mode", &"exclusive")
        .unwrap();
}
@dae
Copy link
Contributor Author

dae commented Aug 17, 2020

The behaviour changed in f37519a

@gwenn gwenn added the bug label Aug 17, 2020
@gwenn
Copy link
Collaborator

gwenn commented Aug 17, 2020

You should use pragma_update_and_check.
But we should fail only when extra_check feature is activated.

@gwenn
Copy link
Collaborator

gwenn commented Aug 17, 2020

See #794

@dae
Copy link
Contributor Author

dae commented Aug 18, 2020

cheers

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

No branches or pull requests

2 participants