Browse Source

fix: filter view list based on current schema in pg

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5870/head
Pranav C 1 year ago
parent
commit
19f66d78fa
  1. 3
      packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts

3
packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts

@ -1350,7 +1350,8 @@ class PGClient extends KnexClient {
const { rows } = await this.sqlClient.raw(
`select *
from INFORMATION_SCHEMA.views
WHERE table_schema = ANY (current_schemas(false));`,
WHERE table_schema = ?;`,
[this.schema],
);
for (let i = 0; i < rows.length; ++i) {

Loading…
Cancel
Save