We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13147d3 commit 122adb7Copy full SHA for 122adb7
adminforth/dataConnectors/postgres.ts
@@ -385,7 +385,7 @@ class PostgresConnector extends AdminForthBaseConnector implements IAdminForthDa
385
const tableName = resource.table;
386
const result = {};
387
await Promise.all(columns.map(async (col) => {
388
- const q = `SELECT MIN(${col.name}) as min, MAX(${col.name}) as max FROM "${tableName}"`;
+ const q = `SELECT MIN("${col.name}") as min, MAX("${col.name}") as max FROM "${tableName}"`;
389
dbLogger.trace(`🪲📜 PG Q: ${q}`);
390
const stmt = await this.client.query(q);
391
const { min, max } = stmt.rows[0];
0 commit comments