Skip to content

Commit

Permalink
fix: incorrect usage of setQueryTimeout interface
Browse files Browse the repository at this point in the history
  • Loading branch information
karenc-bq committed Feb 7, 2025
1 parent 5343e37 commit fcf4dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg/lib/dialect/node_postgres_driver_dialect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class NodePostgresDriverDialect implements DriverDialect {
const driverProperties = WrapperProperties.removeWrapperProperties(props);
this.setKeepAliveProperties(driverProperties, props.get(WrapperProperties.KEEPALIVE_PROPERTIES.name));
this.setConnectTimeout(driverProperties, props.get(WrapperProperties.WRAPPER_CONNECT_TIMEOUT.name));
this.setQueryTimeout(driverProperties, props.get(WrapperProperties.WRAPPER_QUERY_TIMEOUT.name));
this.setQueryTimeout(driverProperties, undefined, props.get(WrapperProperties.WRAPPER_QUERY_TIMEOUT.name));
const targetClient = new pkgPg.Client(Object.fromEntries(driverProperties.entries()));
await targetClient.connect();
return Promise.resolve(new PgClientWrapper(targetClient, hostInfo, props));
Expand Down

0 comments on commit fcf4dfc

Please sign in to comment.