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

Relationship queries fail when (setf *print-case* :downcase) #45

Closed
Ambrevar opened this issue Feb 12, 2019 · 3 comments · Fixed by #51
Closed

Relationship queries fail when (setf *print-case* :downcase) #45

Ambrevar opened this issue Feb 12, 2019 · 3 comments · Fixed by #51

Comments

@Ambrevar
Copy link

If *print-case* is not :UPCASE, it seems that Mito fails to retrieve relationship fields via accessors. Example:

(setf *print-case* :downcase)

(deftable user ()
  ((name :col-type (:varchar 512)))))

(deftable tweet ()
  ((status :col-type (:varchar 512))))
  ((user  :col-type user)))
  

(let* ((user (create-dao 'user :name "foo"))
       (tweet (create-dao 'tweet :status "bar" :user user)))
  (user tweet))

The last expression returns nil, while it should return some #<USER {...}> object.

@vindarel
Copy link
Sponsor Contributor

reproduced here. (Thanks for the report!!)

@vindarel
Copy link
Sponsor Contributor

related: fukamachi/quri#24

@vindarel
Copy link
Sponsor Contributor

vindarel commented Mar 1, 2019

tested better by putting my changes in local-projects: it works for me©.

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 a pull request may close this issue.

2 participants