不要怂,就是干,撸起袖子干!

Commit ee401737 by Sushant Committed by GitHub

fix(postgres): json path key quoting (#11088)

1 parent 75c1fdbc
Showing with 2 additions and 1 deletions
......@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!