You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2019/11/06 09:18:12 after first transaction:
2019/11/06 09:18:12 (quad.Quad) "a" -- "to" -> "b"
2019/11/06 09:18:12 (quad.Quad) "a" -- "updated" -> "2019-11-06T11:45:26Z"^^schema:DateTime
2019/11/06 09:18:12 after second transaction:
2019/11/06 09:18:12 (quad.Quad) "a" -- "updated" -> "2019-11-06T11:46:26Z"^^schema:DateTime
Output of cayley version or commit hash:
v0.7.7
Environment details:
go1.13.3 darwin/amd64
bolt and leveldb both affected
The text was updated successfully, but these errors were encountered:
Description
quad subject nil after removing 2 quads with same subject and adding a new one the same transaction.
starting with empty store:
Steps to reproduce the issue:
Received results:
2019/11/06 09:18:12 after first transaction:
2019/11/06 09:18:12 (quad.Quad) "a" -- "to" -> "b"
2019/11/06 09:18:12 (quad.Quad) "a" -- "updated" -> "2019-11-06T11:45:26Z"^^schema:DateTime
2019/11/06 09:18:12 after second transaction:
2019/11/06 09:18:12 (quad.Quad) -- "updated" -> "2019-11-06T11:46:26Z"^^schema:DateTime
also dump panics/NPE:
➜ txTest cayley dump -o - -d leveldb -a .db/leveldb
I1106 09:12:15.961568 9765 command.go:805] Cayley version: v0.8.x-dev (dev snapshot)
I1106 09:12:15.961795 9765 database.go:146] using backend "leveldb" (.db/leveldb)
I1106 09:12:16.029981 9765 dump.go:73] writing quads to stdout
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x43dbce6]
goroutine 1 [running]:
github.com/cayleygraph/quad/nquads.(*Writer).writeValue(0xc000448120, 0x0, 0x0, 0x5231378, 0x1)
/Users/mike/zo/pkg/mod/github.com/cayleygraph/quad@v1.1.0/nquads/nquads.go:303 +0x36
github.com/cayleygraph/quad/nquads.(*Writer).WriteQuad(0xc000448120, 0x0, 0x0, 0x54e7c80, 0xc0004500e0, 0x54e7cc0, 0xc0001463a0, 0x0, 0x0, 0x1, ...)
/Users/mike/zo/pkg/mod/github.com/cayleygraph/quad@v1.1.0/nquads/nquads.go:316 +0x58
github.com/cayleygraph/quad/nquads.(*Writer).WriteQuads(0xc000448120, 0xc0057e4000, 0x1, 0x2710, 0x1, 0x54d24a0, 0xc0000da050)
/Users/mike/zo/pkg/mod/github.com/cayleygraph/quad@v1.1.0/nquads/nquads.go:329 +0x10d
...
Expected results:
2019/11/06 09:18:12 after first transaction:
2019/11/06 09:18:12 (quad.Quad) "a" -- "to" -> "b"
2019/11/06 09:18:12 (quad.Quad) "a" -- "updated" -> "2019-11-06T11:45:26Z"^^schema:DateTime
2019/11/06 09:18:12 after second transaction:
2019/11/06 09:18:12 (quad.Quad) "a" -- "updated" -> "2019-11-06T11:46:26Z"^^schema:DateTime
Output of
cayley version
or commit hash:v0.7.7
Environment details:
go1.13.3 darwin/amd64
bolt and leveldb both affected
The text was updated successfully, but these errors were encountered: