用postgres防止Node-red转义字符串

问题描述 投票:0回答:1

我在插入URL记录的流中有一个Postgres节点。我试图防止转义它们,因为我需要原始URL。

INSERT INTO links (id,url,created_at, updated_at) 
VALUES (1,'{{msg.url}}','05/08/2020','05/08/2020');

It creates this in the database:
http://abc.com/abcdxc/doc/doc/processing.html

我需要在数据库中未转义的URL,以便可以查询它。

postgresql node-red
1个回答
0
投票

在小胡子模板中使用3 {

INSERT INTO links (id,url,created_at, updated_at) VALUES (1,'{{{msg.url}}}','05/08/2020','05/08/2020'); 
© www.soinside.com 2019 - 2024. All rights reserved.