Skip to content

Commit bc7de37

Browse files
committed
Merge branch 'release-v0.11.6' into release
2 parents 08d6c7b + f41b208 commit bc7de37

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "postgres"
3-
version = "0.11.5"
3+
version = "0.11.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.11.5/postgres"
8+
documentation = "https://sfackler.github.io/rust-postgres/doc/v0.11.6/postgres"
99
readme = "README.md"
1010
keywords = ["database", "postgres", "postgresql", "sql"]
1111
include = ["src/*", "Cargo.toml", "LICENSE", "README.md", "THIRD_PARTY"]

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.11.5/postgres)
4+
[Documentation](https://sfackler.github.io/rust-postgres/doc/v0.11.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/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//! }
3939
//! }
4040
//! ```
41-
#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.11.5")]
41+
#![doc(html_root_url="https://sfackler.github.io/rust-postgres/doc/v0.11.6")]
4242
#![warn(missing_docs)]
4343
#![allow(unknown_lints, needless_lifetimes)] // for clippy
4444
#![cfg_attr(all(unix, feature = "nightly"), feature(unix_socket))]
@@ -471,6 +471,8 @@ impl InnerConnection {
471471
ORDER BY enumsortorder") {
472472
Ok(..) => {}
473473
Err(Error::Io(e)) => return Err(ConnectError::Io(e)),
474+
// Old versions of Postgres and things like Redshift don't support enums
475+
Err(Error::Db(ref e)) if e.code == SqlState::UndefinedTable => {}
474476
Err(Error::Db(e)) => return Err(ConnectError::Db(e)),
475477
Err(Error::Conversion(_)) => unreachable!(),
476478
}
@@ -484,6 +486,8 @@ impl InnerConnection {
484486
ORDER BY attnum") {
485487
Ok(..) => {}
486488
Err(Error::Io(e)) => return Err(ConnectError::Io(e)),
489+
// Old versions of Postgres and things like Redshift don't support composites
490+
Err(Error::Db(ref e)) if e.code == SqlState::UndefinedTable => {}
487491
Err(Error::Db(e)) => return Err(ConnectError::Db(e)),
488492
Err(Error::Conversion(_)) => unreachable!(),
489493
}

0 commit comments

Comments
 (0)