Slightly tweak comment

Probably worth mentioning the specific DBs here.
This commit is contained in:
Steven Fackler
2016-05-26 20:33:14 -07:00
parent 39c8745c82
commit ae4b8d1fa1

View File

@@ -421,7 +421,7 @@ impl InnerConnection {
Err(Error::Io(e)) => return Err(ConnectError::Io(e)),
// Old versions of Postgres and things like Redshift don't support enums
Err(Error::Db(ref e)) if e.code == SqlState::UndefinedTable => {}
// Some Postgres compliant databases are missing a pg_catalog
// Some Postgres-like databases are missing a pg_catalog (e.g. Cockroach)
Err(Error::Db(ref e)) if e.code == SqlState::InvalidCatalogName => return Ok(()),
Err(Error::Db(e)) => return Err(ConnectError::Db(e)),
Err(Error::Conversion(_)) => unreachable!(),