Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries passed to db fns #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

bladealslayer
Copy link
Member

Report 1 2018-11-22

Running against latest Datomic Free transactor 0.9.5703 (but same issue shows
when running against lastest Datomic Pro version 0.9.5786 too).

Details

Two issues show up, but they might be somewhat related.

Suppose that a database function is used to ensure correct atomic updates. Such
a generic function could, for instance, take a query and arguments for a query
as function arguments. Based on the query results, the function may allow the
transaction or throw.

Using such a function, we discover two issues:

  1. Queries containing not clause behave unexpectedly.
  2. Queries that use rules that have or clause break.

See src/datomic_bug_report/core.clj for
example.

Since neither issue manifests when using the Datomic in-memory database, it
seems that the underlying cause might be something related to serialization on
the wire.

1. Queries containing `not` clause
2. Queries using rules that contain `or` clause

Running against latest Datomic Free transactor 0.9.5703.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant