Test opening a read-only connection

This commit is contained in:
Ivan Ukhov
2019-06-08 20:42:31 +02:00
parent 9328fa0897
commit d1e9f8fd3e
2 changed files with 18 additions and 2 deletions

View File

@ -188,7 +188,7 @@ impl ConnectionFlags {
/// Open the database for reading only.
pub fn set_read_only(mut self) -> Self {
self.0 |= ffi::SQLITE_OPEN_READWRITE;
self.0 |= ffi::SQLITE_OPEN_READONLY;
self
}