Revision 652dcb59e91c25e6e6b26138b2e3fbd34a21a4cd authored by Christian Stewart on 17 June 2021, 02:11:03 UTC, committed by Christian Stewart on 17 June 2021, 02:11:04 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
Raw File
.gitignore
*.swp
main
*.test
*.peg.go
cayley.cfg
cayley.yml
cayley.json
.cayley_history
.DS_Store

dist/
vendor/
ui/
packrd/packed-*
# The build binary
/cayley
back to top