This commit is contained in:
Steven Fackler 2014-11-15 08:53:31 -08:00
parent f3fbdd56a8
commit a0888e481a
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ macro_rules! make_errors(
impl SqlState {
#[doc(hidden)]
pub fn from_code(s: &str) -> SqlState {
match STATE_MAP.find_equiv(s) {
match STATE_MAP.get_equiv(s) {
Some(state) => state.clone(),
None => SqlState::Unknown(s.into_string())
}

View File

@ -7,6 +7,7 @@ use std::f32;
use std::f64;
use time;
use time::Timespec;
use std::num::Float;
use postgres::{Connection, NoSsl};
use postgres::types::array::ArrayBase;