mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 14:26:30 +03:00
Replace flags argument to Sql.open with single bool
Previously, "flags" argument of Sql.open was of type libc::c_int, but only one bit was used: whether to open database read-only. This commit makes it explicit by changing type to bool and renaming argument.
This commit is contained in:
committed by
Floris Bruynooghe
parent
8479c8afbf
commit
a4257b619a
@@ -150,7 +150,7 @@ impl Context {
|
||||
};
|
||||
|
||||
ensure!(
|
||||
ctx.sql.open(&ctx, &ctx.dbfile, 0),
|
||||
ctx.sql.open(&ctx, &ctx.dbfile, false),
|
||||
"Failed opening sqlite database"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user