File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ pub enum SqlState {{
358358
359359 write ! ( file,
360360" /// An unknown code
361- Unknown (String)
361+ Other (String)
362362}}
363363"
364364 ) . unwrap ( ) ;
@@ -381,7 +381,7 @@ impl SqlState {{
381381 pub fn from_code(s: String) -> SqlState {{
382382 match SQLSTATE_MAP.get(&*s) {{
383383 Some(state) => state.clone(),
384- None => SqlState::Unknown (s)
384+ None => SqlState::Other (s)
385385 }}
386386 }}
387387
@@ -397,7 +397,7 @@ impl SqlState {{
397397 }
398398
399399 write ! ( file, r#"
400- SqlState::Unknown (ref s) => s,
400+ SqlState::Other (ref s) => s,
401401 }}
402402 }}
403403}}
@@ -419,7 +419,7 @@ impl fmt::Debug for SqlState {{
419419 }
420420
421421 write ! ( file, r#"
422- SqlState::Unknown (ref s) => return write!(fmt, "Unknown ({{:?}})", s),
422+ SqlState::Other (ref s) => return write!(fmt, "Other ({{:?}})", s),
423423 }};
424424 fmt.write_str(s)
425425 }}
You can’t perform that action at this time.
0 commit comments