Revision 7ef662d4c3473f20c3523c9ee094cb21d979da8b authored by Christian Stewart on 17 June 2021, 02:11:03 UTC, committed by Denys Smirnov on 18 June 2021, 13:25:36 UTC
Throughout the code there are calls to ValueOf() and NameOf() on the QuadStore.
The QuadStore currently returns a single value for these functions without an
error, but internally the QuadStore might run into some errors when processing
the value. This hack is clearly identified in the code: rather than return the
error, it's just logged.

If the QuadStore has an error while processing ValueOf or NameOf, the returned
value will be nil which might lead to many types of undefined behavior - such as
queries returning "nil" for one field of a Quad.

Fixes #985

Signed-off-by: Christian Stewart <christian@paral.in>
1 parent 08381ef
History
File Mode Size
.github
appengine
client
clog
cmd
configurations
data
docs
examples
graph
inference
internal
packrd
query
schema
server
version
writer
.dockerignore -rw-r--r-- 6 bytes
.gitbook.yaml -rw-r--r-- 13 bytes
.gitignore -rw-r--r-- 148 bytes
.goreleaser.yml -rw-r--r-- 1.8 KB
.travis.yml -rw-r--r-- 853 bytes
AUTHORS -rw-r--r-- 1.1 KB
CODEOWNERS -rw-r--r-- 11 bytes
CONTRIBUTORS -rw-r--r-- 1.1 KB
Dockerfile -rw-r--r-- 1.9 KB
LICENSE -rw-r--r-- 9.9 KB
README.md -rw-r--r-- 2.1 KB
cayley_example.yml -rw-r--r-- 310 bytes
go.mod -rw-r--r-- 2.8 KB
go.sum -rw-r--r-- 42.3 KB
gogen.go -rw-r--r-- 107 bytes
imports.go -rw-r--r-- 1.3 KB
lint.sh -rwxr-xr-x 1019 bytes
tools.go -rw-r--r-- 192 bytes

README.md

back to top