diff --git a/pkg/neobench/builtin/ldbc_like.go b/pkg/neobench/builtin/ldbc_like.go index d7b7998..2a87666 100644 --- a/pkg/neobench/builtin/ldbc_like.go +++ b/pkg/neobench/builtin/ldbc_like.go @@ -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, diff --git a/pkg/neobench/builtin/ldbc_like_test.go b/pkg/neobench/builtin/ldbc_like_test.go index 4630d90..53ab680 100644 --- a/pkg/neobench/builtin/ldbc_like_test.go +++ b/pkg/neobench/builtin/ldbc_like_test.go @@ -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, diff --git a/pkg/neobench/parser_test.go b/pkg/neobench/parser_test.go index 0bfe7f9..3369039 100644 --- a/pkg/neobench/parser_test.go +++ b/pkg/neobench/parser_test.go @@ -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)