ibdknox/Korma — Issue #10: sql-only does not show sql for secondary queries on has-many
Author: brehaut
Created: 2011-11-04 22:18:44+00:00
State: open

When korma decides to use a secondary query on an entity with a has-many relationship, the resulting query is not shown by the `sql-only` function. E.g:

```clojure
(defentity timestamps)

(defentity fragments
(has-many timestamps {:fk "fragmentid"}))

(-> (select* fragments) (with timestamps) exec sql-only)
; => "SELECT * FROM fragments"

```