Now I've tried with this:
(select "mljentities"
 (fields :configuration)
 (where (or  {:entity_name [like table-name]}
                 {:alias [like table-name]})))

and I'm getting : no such var myns/like
Getting mad :)

Nico


2012/11/10 Nico Balestra <nicobales...@gmail.com>

> Hi all,
> do you know why the following Korma query :
>  (select "mljentities"
>      (fields :configuration)
>      (where (or (= :entity_name  table-name)
>                     (= :alias table-name))))
>
> is being translated into the following query?
> SELECT mljentities.configuration FROM mljentities WHERE false
>
> I'm scrupulously following the sqlkorma website example and everything
> looks ok to me.
> I've also tried with the following approach:
>
>  (select "mljentities"
>      (fields :configuration)
>      (where (or {:entity_name  [= table-name]}
>                     {:alias [= table-name]})))
> with the same result.
>
> I'm sure there's something wrong I'm doing but I can't spot it :(
>
> Thanks,
> Nico
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to