upgrade Rusqlite to 0.15

This commit is contained in:
Benjamin Fry 2018-10-23 11:25:33 -07:00
parent 4363bfd744
commit dc133e91c4
4 changed files with 10 additions and 10 deletions

View File

@ -28,6 +28,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- *breaking* `named` configuration now has AXFR disabled by default.
- feature `tls` renamed to `dns-over-openssl`
- upgraded `native-tls` and `tokio-tls` to 0.2
- upgraded `rusqlite` to 0.15
## 0.14.0

View File

@ -84,7 +84,7 @@ http = { version = "0.1", optional = true }
lazy_static = "1.0"
log = "0.4.1"
rand = "0.5"
rusqlite = { version = "0.14.0", features = ["bundled"] }
rusqlite = { version = "0.15.0", features = ["bundled"] }
rustls = { version = "0.14", optional = true }
serde = "1.0"
serde_derive = "1.0"

View File

@ -11,8 +11,7 @@ use std::iter::Iterator;
use std::path::Path;
use time;
use rusqlite;
use rusqlite::Connection;
use rusqlite::{self, Connection, types::ToSql};
use trust_dns::rr::Record;
use trust_dns::serialize::binary::{BinDecodable, BinDecoder, BinEncodable, BinEncoder};
@ -97,7 +96,7 @@ impl Journal {
record)
\
VALUES ($1, $2, $3, $4)",
&[&client_id, &soa_serial, &timestamp, &serial_record],
&[&client_id as &ToSql, &soa_serial, &timestamp, &serial_record],
)?;
//
if count != 1 {
@ -191,7 +190,7 @@ impl Journal {
)?;
let tdns_schema_opt: Option<Result<String, _>> =
stmt.query_map(&[], |row| row.get(0))?.next();
stmt.query_map(None::<&dyn ToSql>, |row| row.get(0))?.next();
let tdns_schema = match tdns_schema_opt {
Some(Ok(string)) => string,
@ -205,7 +204,7 @@ impl Journal {
"SELECT version
\
FROM tdns_schema",
&[],
None::<&dyn ToSql>,
|row| row.get(0),
)?;
@ -248,13 +247,13 @@ impl Journal {
version INTEGER NOT NULL
\
)",
&[],
None::<&dyn ToSql>,
)?;
//
assert_eq!(count, 0);
let count = self.conn
.execute("INSERT INTO tdns_schema (version) VALUES (0)", &[])?;
.execute("INSERT INTO tdns_schema (version) VALUES (0)", None::<&dyn ToSql>)?;
//
assert_eq!(count, 1);
@ -277,7 +276,7 @@ impl Journal {
record BLOB NOT NULL
\
)",
&[],
None::<&dyn ToSql>,
)?;
//
assert_eq!(count, 1);

View File

@ -71,7 +71,7 @@ log = "^0.4.1"
futures = "^0.1.17"
openssl = { version = "^0.10", features = ["v102", "v110"] }
rand = "^0.5"
rusqlite = { version = "0.14.0", features = ["bundled"] }
rusqlite = { version = "0.15.0", features = ["bundled"] }
rustls = { version = "0.14" }
tokio = "^0.1.6"
tokio-tcp = "^0.1"