File: rusqlite.patch

package info (click to toggle)
rust-rustyline 17.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,032 kB
  • sloc: makefile: 2
file content (26 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: rustyline/Cargo.toml
===================================================================
--- rustyline.orig/Cargo.toml
+++ rustyline/Cargo.toml
@@ -158,7 +158,7 @@ version = "1.10"
 optional = true
 
 [dependencies.rusqlite]
-version = "0.37.0"
+version = ">= 0.29.0, < 0.36"
 features = [
     "backup",
 ]
Index: rustyline/src/sqlite_history.rs
===================================================================
--- rustyline.orig/src/sqlite_history.rs
+++ rustyline/src/sqlite_history.rs
@@ -334,7 +334,7 @@ PRAGMA incremental_vacuum;
             }
         } else {
             // TODO Validate: backup whole history
-            self.conn.backup(c"main", path, None)?;
+            self.conn.backup(rusqlite::DatabaseName::Main, path, None)?;
             // TODO Validate: keep using original path
         }
         Ok(())