We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3fbdd5 commit a0888e4Copy full SHA for a0888e4
2 files changed
src/error.rs
@@ -28,7 +28,7 @@ macro_rules! make_errors(
28
impl SqlState {
29
#[doc(hidden)]
30
pub fn from_code(s: &str) -> SqlState {
31
- match STATE_MAP.find_equiv(s) {
+ match STATE_MAP.get_equiv(s) {
32
Some(state) => state.clone(),
33
None => SqlState::Unknown(s.into_string())
34
}
tests/types/mod.rs
@@ -7,6 +7,7 @@ use std::f32;
7
use std::f64;
8
use time;
9
use time::Timespec;
10
+use std::num::Float;
11
12
use postgres::{Connection, NoSsl};
13
use postgres::types::array::ArrayBase;
0 commit comments