File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff 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
88Available [ 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
1414Please 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.
2424Add ` 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.
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ use std::sync;
77use myc:: named_params:: MixedParamsError ;
88use myc:: packets:: ErrPacket ;
99use 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" ) ) ) ) ]
1214use 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+
111125impl From < MissingNamedParameterError > for Error {
112126 fn from ( MissingNamedParameterError ( name) : MissingNamedParameterError ) -> Error {
113127 Error :: DriverError ( DriverError :: MissingNamedParameter ( name) )
You can’t perform that action at this time.
0 commit comments