Skip to content

Commit

Permalink
Fix generating SQLs in DAO functions to lispify relational fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Aug 26, 2017
1 parent 2a571c9 commit 36fff04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/dao.lisp
Expand Up @@ -18,6 +18,7 @@
#:find-child-columns
#:table-column-references-column)
(:import-from #:mito.class.column
#:table-column-name
#:table-column-type)
(:import-from #:mito.db
#:last-insert-id
Expand Down Expand Up @@ -307,7 +308,7 @@
(when children
`((:and ,@(loop for child in children
collect
`(:= ,(intern (string (c2mop:slot-definition-name child)) :keyword)
`(:= ,(intern (table-column-name child) :keyword)
,(slot-value value
(c2mop:slot-definition-name
(table-column-references-column child)))))))))
Expand Down

0 comments on commit 36fff04

Please sign in to comment.