Open gowda opened 11 years ago
this issue is same as #126
in fact, the same effect can be achieved without using 'rename' procedure:
(-> items (project [[:id :item_id] :user :data]) (join users (where (= :items.user :users.id))))
only disadvantage with using this approach is with listing all the columns of a schema during 'project'.
it would be nice if someone can document the details regarding the issue with 'rename' at http://clojureql.org/documentation.html
Database server: MySQL There are two tables 'items' and 'users' each of them having a common column name 'id'. 'items.user' is a foreign key referring to 'users.id'
generates
whereas it should have been