Neo4j JDBC SQL Workbench/J 中的驱动程序错误 "setEscapeProcessing is not supported by Neo4jStatement"

Neo4j JDBC driver error "setEscapeProcessing is not supported by Neo4jStatement" in SQL Workbench/J

我想在 SQL Workbench/J 中执行多个以分号分隔的 Cypher 语句,就像我可以使用 Ctrl+E 运行 多个选定的 SQL 语句一样快捷方式。

这是一个小例子(从电影数据集修改而来):

CREATE (TheMatrix:Movie {title:'The Matrix', released:1999, tagline:'Welcome to the Real World'});
CREATE (Keanu:Person {name:'Keanu Reeves', born:1964});
CREATE (Carrie:Person {name:'Carrie-Anne Moss', born:1967});
CREATE (Laurence:Person {name:'Laurence Fishburne', born:1961});
CREATE (Hugo:Person {name:'Hugo Weaving', born:1960});
CREATE (AndyW:Person {name:'Andy Wachowski', born:1967});
CREATE (LanaW:Person {name:'Lana Wachowski', born:1965});
CREATE (JoelS:Person {name:'Joel Silver', born:1952});
CREATE
  (Keanu)-[:ACTED_IN {roles:['Neo']}]->(TheMatrix),
  (Carrie)-[:ACTED_IN {roles:['Trinity']}]->(TheMatrix),
  (Laurence)-[:ACTED_IN {roles:['Morpheus']}]->(TheMatrix),
  (Hugo)-[:ACTED_IN {roles:['Agent Smith']}]->(TheMatrix),
  (AndyW)-[:DIRECTED]->(TheMatrix),
  (LanaW)-[:DIRECTED]->(TheMatrix),
  (JoelS)-[:PRODUCED]->(TheMatrix);

我收到错误 "setEscapeProcessing is not supported by Neo4jStatement." 如何解决这个问题?

我正在 运行使用 Neo4j JDBC driver version 2.3.2.

连接我的本地 Neo4j 实例

这些是我的connection settings

我正在使用 Ubuntu 14.04 LTS 和 Java 1.8.0_72-b15、SQL Workbench/J Build 119 (2016-01-31)

此问题已在 SQL Workbench/J forum

中得到解答

Yes, you can set the property workbench.db.[dbid].ddl.disable.escapeprocessing to false, e.g. by using the following SQL statement

WbSetConfig workbench.db.[dbid].ddl.disable.escapeprocessing=false;

you need to replace [dbid] with the DBID that is generated for Hive. For details on the DBID please see here:

http://www.sql-workbench.net/manual/settings.html#dbid

显然在这种情况下,必须使用 Neo4J 的 DBID,而不是 Hive(如论坛答案中所述,因为该问题最初是针对 Hive 的)