Skip to content

Commit 39c8745

Browse files
committed
Merge pull request #178 from nvanbenschoten/nvanbenschoten/pgcatalog
Ignore InvalidCatalogName errors for pg_catalog queries
2 parents 309f283 + ab2f330 commit 39c8745

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ impl InnerConnection {
421421
Err(Error::Io(e)) => return Err(ConnectError::Io(e)),
422422
// Old versions of Postgres and things like Redshift don't support enums
423423
Err(Error::Db(ref e)) if e.code == SqlState::UndefinedTable => {}
424+
// Some Postgres compliant databases are missing a pg_catalog
425+
Err(Error::Db(ref e)) if e.code == SqlState::InvalidCatalogName => return Ok(()),
424426
Err(Error::Db(e)) => return Err(ConnectError::Db(e)),
425427
Err(Error::Conversion(_)) => unreachable!(),
426428
}

0 commit comments

Comments
 (0)