From 53bd8505cd721047a217e378a3124e69be61b949 Mon Sep 17 00:00:00 2001 From: Isaias Tavares Date: Wed, 4 Nov 2026 22:54:14 -0300 Subject: [PATCH] fix(db): read the current schema without SQLite's concatenation spelling lint:dialect counts every || in src/db as SQLite-only, the psql query that names TREK's schema included. concat_ws gives the same tab-separated line. --- server/src/db/engine/postgres/pg-tools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/db/engine/postgres/pg-tools.ts b/server/src/db/engine/postgres/pg-tools.ts index dd94087cf..b547c8075 100644 --- a/server/src/db/engine/postgres/pg-tools.ts +++ b/server/src/db/engine/postgres/pg-tools.ts @@ -186,7 +186,7 @@ async function pgCurrentSchema(url: string, binDir: string | undefined): Promise '--no-psqlrc', '--no-align', '--tuples-only', - "--command=select current_schema() || E'\\t' || quote_ident(current_schema())", + "--command=select concat_ws(E'\\t', current_schema(), quote_ident(current_schema()))", ], pgConnectionEnv(url), );