Skip to content

Commit

Permalink
fix: add type overrides for pg-native
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 23, 2019
1 parent c69a5c0 commit 009a212
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/factories/createConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ const createConnection = async (
// eslint-disable-next-line id-match
connection._types = await pool.typeOverrides;

if (connection.native) {
// eslint-disable-next-line id-match
connection.native._types = await pool.typeOverrides;
}

const connectionId = connection.connection.slonik.connectionId;

const connectionLog = parentLog.child({
Expand Down

0 comments on commit 009a212

Please sign in to comment.