Merge pull request #178 from nvanbenschoten/nvanbenschoten/pgcatalog
Ignore InvalidCatalogName errors for pg_catalog queries
This commit is contained in:
@@ -421,6 +421,8 @@ 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
|
||||
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!(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user