[英]Neo4j JDBC driver error “setEscapeProcessing is not supported by Neo4jStatement” in SQL Workbench/J
I want to execute multiple semi-colon delimited Cypher statements in SQL Workbench/J the same way I can run multiple selected SQL statements with the Ctrl+E shortcut. 我想在SQL Workbench / J中执行多个以分号分隔的Cypher语句,就像我可以使用Ctrl + E快捷键运行多个选定的SQL语句一样。
Here is a small example (modified from the movies dataset): 这是一个小示例(从电影数据集修改而来):
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);
I get the error "setEscapeProcessing is not supported by Neo4jStatement." 我收到错误消息“ Neo4jStatement不支持setEscapeProcessing。” How to fix this?
如何解决这个问题?
I'm running my local Neo4j instance using Neo4j JDBC driver version 2.3.2. 我正在使用Neo4j JDBC驱动程序版本2.3.2运行本地Neo4j实例。
These are my connection settings . 这些是我的连接设置 。
I'm using Ubuntu 14.04 LTS and Java 1.8.0_72-b15, SQL Workbench/J Build 119 (2016-01-31) 我正在使用Ubuntu 14.04 LTS和Java 1.8.0_72-b15,SQL Workbench / J Build 119(2016-01-31)
This question has already been answered in the SQL Workbench/J forum SQL Workbench / J论坛中已经回答了这个问题
Yes, you can set the property
workbench.db.[dbid].ddl.disable.escapeprocessing
to false, eg by using the following SQL statement是的,您可以将属性
workbench.db.[dbid].ddl.disable.escapeprocessing
为false,例如,通过使用以下SQL语句
WbSetConfig workbench.db.[dbid].ddl.disable.escapeprocessing=false;
you need to replace [dbid] with the DBID that is generated for Hive.
您需要用为Hive生成的DBID替换[dbid]。 For details on the DBID please see here:
有关DBID的详细信息,请参见此处:
http://www.sql-workbench.net/manual/settings.html#dbid
http://www.sql-workbench.net/manual/settings.html#dbid
Obviously in this case the DBID for Neo4J must be used, not for Hive (as stated in the forum answer because that question was initially for Hive) 显然,在这种情况下,必须使用Neo4J的DBID,而不是Hive(如论坛答案中所述,因为该问题最初是针对Hive的)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.