Skip to content

Commit

Permalink
Fix old param syntax in LDBC query
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewins committed Aug 4, 2021
1 parent a25b204 commit 20efd4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/neobench/builtin/ldbc_like.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
const LDBCIC2 = `
:set personId random(1, 9892 * $scale)
MATCH (:Person {id:{personId}})-[:KNOWS]-(friend),
MATCH (:Person {id: $personId})-[:KNOWS]-(friend),
(friend)<-[:HAS_CREATOR]-(message)
WHERE message.creationDate <= date({year: 2010, month:10, day:10})
RETURN friend.id AS personId,
Expand Down
2 changes: 1 addition & 1 deletion pkg/neobench/builtin/ldbc_like_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestParseIC2(t *testing.T) {
}
assert.Equal(t, []neobench.Statement{
{
Query: `MATCH (:Person {id:{personId}})-[:KNOWS]-(friend),
Query: `MATCH (:Person {id: $personId})-[:KNOWS]-(friend),
(friend)<-[:HAS_CREATOR]-(message)
WHERE message.creationDate <= date({year: 2010, month:10, day:10})
RETURN friend.id AS personId,
Expand Down
2 changes: 1 addition & 1 deletion pkg/neobench/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ RETURN $serverSide + {serverSide} + $$clientSide, $$clientSideList`, 1)
assert.NoError(t, err)
assert.Equal(t, []Statement{
{
Query: "RETURN {serverSide} + 7331, [\"hello1\", \"hello2\"]",
Query: "RETURN $serverSide + {serverSide} + 7331, [\"hello1\", \"hello2\"]",
Params: map[string]interface{}{"serverSide": int64(1337)},
},
}, uow.Statements)
Expand Down

0 comments on commit 20efd4d

Please sign in to comment.