-
Notifications
You must be signed in to change notification settings - Fork 44
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
Negation of conjunction does not work #20
Comments
I can confirm. Negations of conjunctions seem to always yield true. Any news concerning this issue? |
A workaround is to create a predicate for the clause to be negated :
yields the correct empty result. |
I agree Pierre, the workaround is obvious -- not using negated conjunction.
|
If I applied your patch correctly, it fixes this issue, but the regression tests fail (test.py fails in the reset function, line 6). Predicates cannot be correctly reset anymore. Could you double-check ? One approach would be to find out which commit introduced the regression, between 0.14.6, and 0.15.0. |
In 0.17.0 the negation of conjunction does not work. Query
should have no solution, however, pyDatalog finds solution
[(1,2)]
.I have tested negation of an equivalent non-compound term
and that indeed results in an empty set.
I have tested this in older releases and I got correct behaviour up to 0.14.6, but not since 0.15.0. I have just upgraded from 0.13 to 0.17 and found this issue.
The text was updated successfully, but these errors were encountered: