Skip to content

Commit fc2ae1d

Browse files
committed
Merge branch 'release-v0.9.6' into release
2 parents 2893091 + 50d4612 commit fc2ae1d

File tree

11 files changed

+782
-422
lines changed

11 files changed

+782
-422
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "postgres"
3-
version = "0.9.5"
3+
version = "0.9.6"
44
authors = ["Steven Fackler <[email protected]>"]
55
license = "MIT"
66
description = "A native PostgreSQL driver"
77
repository = "https://github.com/sfackler/rust-postgres"
8-
documentation = "https://sfackler.github.io/rust-postgres/doc/v0.9.5/postgres"
8+
documentation = "https://sfackler.github.io/rust-postgres/doc/v0.9.6/postgres"
99
readme = "README.md"
1010
keywords = ["database", "sql"]
1111
build = "build.rs"
@@ -31,7 +31,7 @@ log = "0.3"
3131
phf = "0.7"
3232
rustc-serialize = "0.3"
3333
chrono = { version = "0.2.14", optional = true }
34-
openssl = { version = "0.6", optional = true }
34+
openssl = { version = "0.6.4", optional = true }
3535
serde = { version = "0.3", optional = true }
3636
time = { version = "0.1.14", optional = true }
3737
unix_socket = { version = ">= 0.3, < 0.5", optional = true }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Rust-Postgres
22
A native PostgreSQL driver for Rust.
33

4-
[Documentation](https://sfackler.github.io/rust-postgres/doc/v0.9.5/postgres)
4+
[Documentation](https://sfackler.github.io/rust-postgres/doc/v0.9.6/postgres)
55

66
[![Build Status](https://travis-ci.org/sfackler/rust-postgres.png?branch=master)](https://travis-ci.org/sfackler/rust-postgres) [![Latest Version](https://img.shields.io/crates/v/postgres.svg)](https://crates.io/crates/postgres)
77

src/error.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,9 @@ impl From<byteorder::Error> for Error {
350350
Error::IoError(From::from(err))
351351
}
352352
}
353+
354+
impl From<Error> for io::Error {
355+
fn from(err: Error) -> io::Error {
356+
io::Error::new(io::ErrorKind::Other, err)
357+
}
358+
}

src/io/openssl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ impl StreamWrapper for SslStream<Stream> {
1818
impl NegotiateSsl for SslContext {
1919
fn negotiate_ssl(&self, _: &str, stream: Stream)
2020
-> Result<Box<StreamWrapper>, Box<Error+Send+Sync>> {
21-
let stream = try!(SslStream::new(self, stream));
21+
let stream = try!(SslStream::connect(self, stream));
2222
Ok(Box::new(stream))
2323
}
2424
}

0 commit comments

Comments
 (0)