Fix for phf changes

This commit is contained in:
Steven Fackler 2014-11-19 20:20:50 -08:00
parent 3a0f189727
commit ec6e242dd4

View File

@ -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())
}