Skip to content

Commit 0f0c7c7

Browse files
committed
Updates postgres dependency to 0.14
1 parent 2f6cf33 commit 0f0c7c7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "postgres_array"
3-
version = "0.7.1"
3+
version = "0.8.0"
44
authors = ["Steven Fackler <sfackler@gmail.com>"]
55
license = "MIT"
66
description = "Array support for rust-postgres"
77
repository = "https://github.com/sfackler/rust-postgres-array"
8-
documentation = "https://sfackler.github.io/rust-postgres-array/doc/v0.7.1/postgres_array"
8+
documentation = "https://sfackler.github.io/rust-postgres-array/doc/v0.8.0/postgres_array"
99

1010
[dependencies]
1111
fallible-iterator = "0.1"
12-
postgres = ">= 0.12, < 0.14"
13-
postgres-protocol = "0.1"
12+
postgres = "0.14"
13+
postgres-protocol = "0.3"

src/impls.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use fallible_iterator::FallibleIterator;
2-
use postgres::types::{Type, Kind, ToSql, FromSql, IsNull, SessionInfo};
2+
use postgres::types::{Type, Kind, ToSql, FromSql, IsNull};
33
use postgres_protocol::types;
44
use postgres_protocol;
55
use std::error::Error;
@@ -9,7 +9,7 @@ use {Array, Dimension};
99
impl<T> FromSql for Array<T>
1010
where T: FromSql
1111
{
12-
fn from_sql(ty: &Type, raw: &[u8], info: &SessionInfo) -> Result<Array<T>, Box<Error + Sync + Send>> {
12+
fn from_sql(ty: &Type, raw: &[u8]) -> Result<Array<T>, Box<Error + Sync + Send>> {
1313
let element_type = match *ty.kind() {
1414
Kind::Array(ref ty) => ty,
1515
_ => unreachable!(),
@@ -24,7 +24,7 @@ impl<T> FromSql for Array<T>
2424
.collect());
2525

2626
let elements = try!(array.values()
27-
.and_then(|v| FromSql::from_sql_nullable(element_type, v, info))
27+
.and_then(|v| FromSql::from_sql_nullable(element_type, v))
2828
.collect());
2929

3030
Ok(Array::from_parts(elements, dimensions))
@@ -41,7 +41,7 @@ impl<T> FromSql for Array<T>
4141
impl<T> ToSql for Array<T>
4242
where T: ToSql
4343
{
44-
fn to_sql(&self, ty: &Type, w: &mut Vec<u8>, info: &SessionInfo) -> Result<IsNull, Box<Error + Sync + Send>> {
44+
fn to_sql(&self, ty: &Type, w: &mut Vec<u8>) -> Result<IsNull, Box<Error + Sync + Send>> {
4545
let element_type = match ty.kind() {
4646
&Kind::Array(ref ty) => ty,
4747
_ => unreachable!(),
@@ -62,7 +62,7 @@ impl<T> ToSql for Array<T>
6262
element_type.oid(),
6363
elements,
6464
|v, w| {
65-
match v.to_sql(element_type, w, info) {
65+
match v.to_sql(element_type, w) {
6666
Ok(IsNull::Yes) => Ok(postgres_protocol::IsNull::Yes),
6767
Ok(IsNull::No) => Ok(postgres_protocol::IsNull::No),
6868
Err(e) => Err(e),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy