Updates
This commit is contained in:
parent
f3fbdd56a8
commit
a0888e481a
@ -28,7 +28,7 @@ macro_rules! make_errors(
|
|||||||
impl SqlState {
|
impl SqlState {
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
pub fn from_code(s: &str) -> SqlState {
|
pub fn from_code(s: &str) -> SqlState {
|
||||||
match STATE_MAP.find_equiv(s) {
|
match STATE_MAP.get_equiv(s) {
|
||||||
Some(state) => state.clone(),
|
Some(state) => state.clone(),
|
||||||
None => SqlState::Unknown(s.into_string())
|
None => SqlState::Unknown(s.into_string())
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ use std::f32;
|
|||||||
use std::f64;
|
use std::f64;
|
||||||
use time;
|
use time;
|
||||||
use time::Timespec;
|
use time::Timespec;
|
||||||
|
use std::num::Float;
|
||||||
|
|
||||||
use postgres::{Connection, NoSsl};
|
use postgres::{Connection, NoSsl};
|
||||||
use postgres::types::array::ArrayBase;
|
use postgres::types::array::ArrayBase;
|
||||||
|
Loading…
Reference in New Issue
Block a user