Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix(postgres): json path key quoting (#11088)
  • Loading branch information
sushantdhiman committed Jun 20, 2019
1 parent 75c1fdb commit ee40173
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dialects/abstract/query-generator.js
Expand Up @@ -2198,7 +2198,8 @@ var QueryGenerator = {
path[path.length - 1] = $tmp[0];
}

$baseKey = self.quoteIdentifier(key)+'#>>\'{'+path.join(', ')+'}\'';
var pathKey = self.escape('{' + path.join(', ') + '}');
$baseKey = self.quoteIdentifier(key)+'#>>'+pathKey;

if (options.prefix) {
if (options.prefix instanceof Utils.literal) {
Expand Down

0 comments on commit ee40173

Please sign in to comment.