Skip to content

Commit acb8c3a

Browse files
committed
Escape column names that could be PG sensitive
1 parent 31d4cea commit acb8c3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strontium",
3-
"version": "2.7.4",
3+
"version": "2.7.5",
44
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

src/query/drivers/sql/TableRepository.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ export abstract class TableRepository<
119119

120120
let lookupQuery = `
121121
SELECT
122-
${this.queryFields.join(", ")}
122+
${this.queryFields.map((f) => `"${f}"`).join(", ")}
123123
FROM
124124
??
125-
${filterQuery !== "" ? "WHERE" : ""}
125+
${filterQuery !== "" ? "WHERE" : ""}
126126
${filterQuery}
127127
`
128128

0 commit comments

Comments
 (0)