File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ pub enum SqlState {{
358
358
359
359
write ! ( file,
360
360
" /// An unknown code
361
- Unknown (String)
361
+ Other (String)
362
362
}}
363
363
"
364
364
) . unwrap ( ) ;
@@ -381,7 +381,7 @@ impl SqlState {{
381
381
pub fn from_code(s: String) -> SqlState {{
382
382
match SQLSTATE_MAP.get(&*s) {{
383
383
Some(state) => state.clone(),
384
- None => SqlState::Unknown (s)
384
+ None => SqlState::Other (s)
385
385
}}
386
386
}}
387
387
@@ -397,7 +397,7 @@ impl SqlState {{
397
397
}
398
398
399
399
write ! ( file, r#"
400
- SqlState::Unknown (ref s) => s,
400
+ SqlState::Other (ref s) => s,
401
401
}}
402
402
}}
403
403
}}
@@ -419,7 +419,7 @@ impl fmt::Debug for SqlState {{
419
419
}
420
420
421
421
write ! ( file, r#"
422
- SqlState::Unknown (ref s) => return write!(fmt, "Unknown ({{:?}})", s),
422
+ SqlState::Other (ref s) => return write!(fmt, "Other ({{:?}})", s),
423
423
}};
424
424
fmt.write_str(s)
425
425
}}
You can’t perform that action at this time.
0 commit comments