From 55eacb57670d4952447d308df3c928836bcf5166 Mon Sep 17 00:00:00 2001 From: Wangjunqi123 Date: Tue, 21 Nov 2023 09:11:09 +0800 Subject: [PATCH] Change single quotes to back quotes in cql --- server/dao/neo4j.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/dao/neo4j.go b/server/dao/neo4j.go index 9eb711c..00ead13 100644 --- a/server/dao/neo4j.go +++ b/server/dao/neo4j.go @@ -53,7 +53,7 @@ func (n *Neo4jclient) Node_create(unixtime string, node *meta.Node) error { var cqlIN string if len(node.Metrics) == 0 { - cqlIN = fmt.Sprintf("create (node:`%s` {unixtime:'%s', nid:'%s', name:'%s'} set node:'%s')", + cqlIN = fmt.Sprintf("create (node:`%s` {unixtime:'%s', nid:'%s', name:'%s'} set node:`%s`)", node.Type, unixtime, node.ID, node.Name, node.UUID) } else { cqlIN = fmt.Sprintf("create (node:`%s` {unixtime:'%s', nid:'%s', name:'%s'}) set node:`%s`, node += $metrics", -- Gitee