From 8cbef2f72b0e45a2713b0289ea8885b27f311d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claas=20Br=C3=BCggemann?= Date: Wed, 26 Feb 2020 11:45:45 +0100 Subject: [PATCH 1/4] fix http request headers --- .gitignore | 1 + src/HttpDriver/Session.php | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index e931b1eb..ff43aedb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ tests/_reports tests/database_settings.yml vendor/ phpunit.xml +.idea diff --git a/src/HttpDriver/Session.php b/src/HttpDriver/Session.php index 25026c4d..83f785d6 100644 --- a/src/HttpDriver/Session.php +++ b/src/HttpDriver/Session.php @@ -191,10 +191,8 @@ public function prepareRequest(Pipeline $pipeline) 'statements' => $statements, ]); $headers = [ - [ - 'X-Stream' => true, - 'Content-Type' => 'application/json', - ], + 'X-Stream' => true, + 'Content-Type' => 'application/json', ]; return $this->requestFactory->createRequest('POST', sprintf('%s/db/data/transaction/commit', $this->uri), $headers, $body); From 7fcfd0bd5767f5da75e2e42b046c9f314291d025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claas=20Br=C3=BCggemann?= Date: Wed, 26 Feb 2020 11:46:43 +0100 Subject: [PATCH 2/4] update statement statistics keys --- src/HttpDriver/Result/StatementStatistics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpDriver/Result/StatementStatistics.php b/src/HttpDriver/Result/StatementStatistics.php index c72aa103..43be3a8a 100644 --- a/src/HttpDriver/Result/StatementStatistics.php +++ b/src/HttpDriver/Result/StatementStatistics.php @@ -83,7 +83,7 @@ public function __construct(array $statistics = []) $keys = [ 'contains_updates', 'nodes_created', 'nodes_deleted', 'properties_set', 'labels_added', 'labels_removed', 'indexes_added', 'indexes_removed', 'constraints_added', 'constraints_removed', 'relationship_deleted', - 'relationships_created', + 'relationships_created', 'contains_system_updates', 'system_updates', ]; foreach ($statistics as $key => $value) { From a0da56f09272fd617213b484c4f581842f7b193b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claas=20Br=C3=BCggemann?= Date: Wed, 26 Feb 2020 11:48:09 +0100 Subject: [PATCH 3/4] update test to new parameter syntax --- tests/Issues/Issue40Test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Issues/Issue40Test.php b/tests/Issues/Issue40Test.php index 632fce6e..49972990 100644 --- a/tests/Issues/Issue40Test.php +++ b/tests/Issues/Issue40Test.php @@ -25,9 +25,9 @@ public function testIssue() $this->emptyDb(); $this->client->run('CREATE (:BRIEF {id: 123})'); - $query = 'MATCH (s:BRIEF {id:{brief_id}}) + $query = 'MATCH (s:BRIEF {id: $brief_id}) CREATE (n:BRIEFNOTECARD) - SET n += {data} + SET n += $data CREATE (n)-[:CARD_OF {order:0}]->(s) RETURN n'; From d235486f77ef99cb8ee7b0c141f7afee2d31be54 Mon Sep 17 00:00:00 2001 From: Christophe Willemsen Date: Wed, 18 Mar 2020 15:53:35 +0100 Subject: [PATCH 4/4] changed neo4j to 4.0 on travis --- build/install-neo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/install-neo.sh b/build/install-neo.sh index 89b7226e..bf971c28 100755 --- a/build/install-neo.sh +++ b/build/install-neo.sh @@ -3,7 +3,7 @@ export JAVA_HOME=/usr/lib/jvm/java-8-oracle export JRE_HOME=/usr/lib/jvm/java-8-oracle -wget http://dist.neo4j.org/neo4j-enterprise-3.3.0-unix.tar.gz > null +wget http://dist.neo4j.org/neo4j-enterprise-4.0.0-unix.tar.gz > null mkdir neo tar xzf neo4j-enterprise-3.3.0-unix.tar.gz -C neo --strip-components=1 > null sed -i.bak '0,/\(dbms\.security\.auth_enabled=\).*/s/^#//g' ./neo/conf/neo4j.conf