We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9c788 commit d24335dCopy full SHA for d24335d
packages/cubejs-postgres-driver/driver/PostgresDriver.js
@@ -82,7 +82,7 @@ class PostgresDriver extends BaseDriver {
82
const client = await this.pool.connect();
83
try {
84
await client.query(`SET TIME ZONE '${this.config.storeTimezone || 'UTC'}'`);
85
- await client.query("set statement_timeout to 600000");
+ await client.query(`set statement_timeout to ${(this.config.hasOwnProperty('executionTimeout')) ? this.config.executionTimeout * 1000 : 600000}`);
86
const res = await client.query({
87
text: query,
88
values: values || [],
0 commit comments