Fix for phf changes
This commit is contained in:
parent
3a0f189727
commit
ec6e242dd4
@ -32,7 +32,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.get_equiv(s) {
|
match STATE_MAP.get(s) {
|
||||||
Some(state) => state.clone(),
|
Some(state) => state.clone(),
|
||||||
None => SqlState::Unknown(s.into_string())
|
None => SqlState::Unknown(s.into_string())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user