We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22f35c4 commit 2a1fa17Copy full SHA for 2a1fa17
src/lib.rs
@@ -467,7 +467,7 @@ impl InnerConnection {
467
// Range types weren't added until Postgres 9.2, so pg_range may not exist
468
Err(Error::Db(ref e)) if e.code == SqlState::UndefinedTable => {}
469
Err(Error::Db(e)) => return Err(ConnectError::Db(e)),
470
- _ => unreachable!(),
+ Err(Error::Conversion(_)) => unreachable!(),
471
}
472
473
match self.raw_prepare(TYPEINFO_QUERY,
@@ -479,7 +479,7 @@ impl InnerConnection {
479
Ok(..) => Ok(()),
480
Err(Error::Io(e)) => Err(ConnectError::Io(e)),
481
Err(Error::Db(e)) => Err(ConnectError::Db(e)),
482
483
484
485
0 commit comments