Re: ClojureQL & Postgres question

2011-08-21 Thread David Jagoe
On 19 August 2011 17:25, Herwig Hochleitner wrote: > This is a bug in `rename`. > That needs to be worked on, thanks for pointing it out. > In the meantime, please use >    (-> (table nil :users) >         (project [[:id :as :idx] >                     :name]) >         to-sql) > in the meantime.

Re: ClojureQL & Postgres question

2011-08-19 Thread Herwig Hochleitner
This is a bug in `rename`. That needs to be worked on, thanks for pointing it out. In the meantime, please use (-> (table nil :users) (project [[:id :as :idx] :name]) to-sql) in the meantime. regards 2011/8/17 David Jagoe > Hi All, > > Could someone wit

ClojureQL & Postgres question

2011-08-17 Thread David Jagoe
Hi All, Could someone with experience in clojureql + postgres tell me if this works: clojureql.core> (-> (table nil :users) (project [:id :name]) (rename {:id :idx}) to-sql) "SELECT users.id,users.name FROM users A