On Jan 5, 2009, at 7:59 PM, ck wrote:

Ops, my mistake. Second one should be:

(defn db-read []
 (sql/with-connection db
   (sql/with-results res
    "SELECT
         users.id,
         users.name
     FROM
         users
     INNER JOIN
         roles
         ON
         user.id = roles.user_id
     ORDER BY
         users.id;"
    (doseq [rec res]
       (println rec)))))

Sorry about that,

In the "doesn't work" case, had you defined db-read in the "scrapbook" namespace?

What does "scrapbook/db-read" return when typed at the repl.

--Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to