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

changes in cl-dbi breakes crane #56

Open
bpanthi977 opened this issue Oct 3, 2020 · 0 comments
Open

changes in cl-dbi breakes crane #56

bpanthi977 opened this issue Oct 3, 2020 · 0 comments
Assignees

Comments

@bpanthi977
Copy link

The commit changes how parameters are passed to dbi:execute (as explained here)

For my use cases changing apply to funcall in the meta-query macro fixed the problem.

(defmacro meta-query (query database-name body)
  `(multiple-value-bind (sql args) (sxql:yield ,query)
     (when (crane.config:debugp)
       (format t "~&Query: ~A~&" sql))
     (let* ((prepared (dbi:prepare (crane.connect:get-connection ,database-name)
                                   sql))
            (result (funcall #'dbi:execute
                           prepared args)))
       (when result ,body))))

I am not sure if this is all it takes to fix this problem. I hope it is fixed soon.

And thanks for this nice library. :)

@eudoxia0 eudoxia0 self-assigned this Oct 3, 2020
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

No branches or pull requests

2 participants