mirror of https://github.com/Fabio286/antares.git
perf(PostgreSQL): minor improvement to schema selection
This commit is contained in:
parent
1c73503138
commit
9d8e9a5e1f
|
@ -1579,7 +1579,7 @@ export class PostgreSQLClient extends AntaresCore {
|
||||||
if (args.tabUid && isPool)
|
if (args.tabUid && isPool)
|
||||||
this._runningConnections.set(args.tabUid, (connection as pg.PoolClient & { processID: number }).processID);
|
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);
|
await this.use(args.schema, connection);
|
||||||
|
|
||||||
for (const query of queries) {
|
for (const query of queries) {
|
||||||
|
|
Loading…
Reference in New Issue