mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-08 21:24:56 -05:00
adjust minimum SQLite version
"without rowid" was introduced in 3.8.2, not 3.14.0. The latter was just "without rowid" virtual tables, a more obscure feature.
This commit is contained in:
@@ -2118,11 +2118,11 @@ pub(crate) fn set_integrity_pragmas(conn: &mut rusqlite::Connection) -> Result<(
|
||||
}
|
||||
|
||||
pub(crate) fn check_sqlite_version() -> Result<(), Error> {
|
||||
// SQLite version 3.14.0 introduced the "without rowid" syntax used in the schema.
|
||||
// https://www.sqlite.org/vtab.html#worid
|
||||
if rusqlite::version_number() < 3014000 {
|
||||
// SQLite version 3.8.2 introduced the "without rowid" syntax used in the schema.
|
||||
// https://www.sqlite.org/withoutrowid.html
|
||||
if rusqlite::version_number() < 3008002 {
|
||||
bail!(
|
||||
"SQLite version {} is too old; need at least 3.14.0",
|
||||
"SQLite version {} is too old; need at least 3.8.2",
|
||||
rusqlite::version()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user