We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fd17e commit 7d5e083Copy full SHA for 7d5e083
server/postgres/src/storage.ts
@@ -1488,8 +1488,8 @@ abstract class PostgresAdapterBase implements DbAdapter {
1488
return type === 'common'
1489
? `${tlkey} = ${vars.add(value, valType)}`
1490
: type === 'array'
1491
- ? `${tkey} @> '${typeof value === 'string' ? '{"' + value + '"}' : value}'`
1492
- : `${tkey} @> '${typeof value === 'string' ? '"' + value + '"' : value}'`
+ ? `${tkey} @> '${typeof value === 'string' ? '{"' + escape(value) + '"}' : value}'`
+ : `${tkey} @> '${typeof value === 'string' ? '"' + escape(value) + '"' : value}'`
1493
}
1494
1495
private getReverseProjection (vars: ValuesVariables, join: JoinProps): string[] {
0 commit comments