Skip to content

Commit

Permalink
fix(son-api-nestjs): MySQL queries using double quotes instead of bac…
Browse files Browse the repository at this point in the history
…ktick

Closes #67
  • Loading branch information
klerick committed Nov 20, 2023
1 parent 2c96fe1 commit 715c299
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export async function getAll<T>(
.innerJoin(
`(${builder.getQuery()})`,
'subQuery',
`"subQuery"."${subQueryIdAlias}" = ${countAlias}.${primaryColumn}`
`${builder.escape('subQuery')}.${builder.escape(subQueryIdAlias)} = ${countAlias}.${primaryColumn}`
)
.setParameters(builder.getParameters())
.getRawMany<T>();
Expand Down

0 comments on commit 715c299

Please sign in to comment.