Skip to content

Commit e5d943e

Browse files
committed
Merge branch 'master' of github.com:blackbeam/rust-mysql-simple
2 parents 1eccbf1 + 46eeb71 commit e5d943e

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ rust-mysql-simple
22
=================
33
[![Build Status](https://travis-ci.org/blackbeam/rust-mysql-simple.png?branch=master)](https://travis-ci.org/blackbeam/rust-mysql-simple) [![Build status](https://ci.appveyor.com/api/projects/status/4te7c9q4tlmwvof0/branch/master?svg=true)](https://ci.appveyor.com/project/blackbeam/rust-mysql-simple/branch/master)
44

5-
Mysql client library implemented in rust. Feel free to open a new issues and pull requests.
5+
Mysql client library implemented in rust. Feel free to open new issues and pull requests.
66

77
### Changelog
88
Available [here](https://github.com/blackbeam/rust-mysql-simple/releases)
99

1010
### Documentation
11-
Latest crate API docs hosted on [docs.rs](https://docs.rs/crate/mysql).
11+
Latest crate API docs are hosted on [docs.rs](https://docs.rs/crate/mysql).
1212

1313
### Installation
1414
Please use [crates.io](https://crates.io/crates/mysql)
@@ -20,7 +20,7 @@ mysql = "*"
2020

2121
### SSL Support
2222

23-
rust-mysql-simple offers support of SSL via `ssl` cargo feature which is disabled by default.
23+
rust-mysql-simple offers support for SSL via `ssl` cargo feature which is disabled by default.
2424
Add `ssl` feature to enable:
2525

2626
```toml
@@ -41,4 +41,4 @@ features = ["rustc-serialize"]
4141
```
4242

4343
### Windows support (since 0.18.0)
44-
Windows is supported but currently rust-mysql-simple has no support of SSL on Windows.
44+
Windows is supported but currently rust-mysql-simple has no support for SSL on Windows.

src/error.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use std::sync;
77
use myc::named_params::MixedParamsError;
88
use myc::packets::ErrPacket;
99
use myc::params::MissingNamedParameterError;
10+
use myc::row::convert::FromRowError;
11+
use myc::value::convert::FromValueError;
1012

1113
#[cfg(all(feature = "ssl", all(unix, not(target_os = "macos"))))]
1214
use openssl::{
@@ -108,6 +110,18 @@ impl error::Error for Error {
108110
}
109111
}
110112

113+
impl From<FromValueError> for Error {
114+
fn from(FromValueError(value): FromValueError) -> Error {
115+
Error::FromValueError(value)
116+
}
117+
}
118+
119+
impl From<FromRowError> for Error {
120+
fn from(FromRowError(row): FromRowError) -> Error {
121+
Error::FromRowError(row)
122+
}
123+
}
124+
111125
impl From<MissingNamedParameterError> for Error {
112126
fn from(MissingNamedParameterError(name): MissingNamedParameterError) -> Error {
113127
Error::DriverError(DriverError::MissingNamedParameter(name))

0 commit comments

Comments
 (0)