Fix for phf changes
This commit is contained in:
parent
3a0f189727
commit
ec6e242dd4
@ -32,7 +32,7 @@ macro_rules! make_errors(
|
||||
impl SqlState {
|
||||
#[doc(hidden)]
|
||||
pub fn from_code(s: &str) -> SqlState {
|
||||
match STATE_MAP.get_equiv(s) {
|
||||
match STATE_MAP.get(s) {
|
||||
Some(state) => state.clone(),
|
||||
None => SqlState::Unknown(s.into_string())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user