neo4j / neo4j-go-driver

Neo4j Bolt Driver for Go
Apache License 2.0
488 stars 68 forks source link

Fix tfirst tracking for interleaved runs of same transaction #461

Closed fbiville closed 1 year ago

fbiville commented 1 year ago

Since the connection instance tracks the last seen RUN's SUCCESS' tfirst, a subsequent run of the same transaction overwrites the tfirst of partially consumed results of a previous run.

Having each stream track their own tfirst avoids this problem.

Note: this only happens to Bolt4, since it is not possible to pull partial results with Bolt3 (only PULALL is available).