perf(PostgreSQL): minor improvement to schema selection

This commit is contained in:
Fabio Di Stasio 2023-07-07 15:22:16 +02:00
parent 1c73503138
commit 9d8e9a5e1f
1 changed files with 1 additions and 1 deletions

View File

@ -1579,7 +1579,7 @@ export class PostgreSQLClient extends AntaresCore {
if (args.tabUid && isPool)
this._runningConnections.set(args.tabUid, (connection as pg.PoolClient & { processID: number }).processID);
if (args.schema && args.schema !== 'public')
if (args.schema)
await this.use(args.schema, connection);
for (const query of queries) {