Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Claas brueggemann feature/v4 support #174

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ tests/_reports
tests/database_settings.yml
vendor/
phpunit.xml
.idea
2 changes: 1 addition & 1 deletion build/install-neo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/HttpDriver/Result/StatementStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 2 additions & 4 deletions src/HttpDriver/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tests/Issues/Issue40Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down