LauJensen / clojureql

ClojureQL is superior SQL integration for Clojure
https://clojureql.sabrecms.com
Eclipse Public License 1.0
285 stars 39 forks source link

Rename throws SyntaxErrorException #126

Open ghost opened 12 years ago

ghost commented 12 years ago

I'm using clojureql 1.0.3 and MySQL database. This code

@(-> (join (table :users) (table :cities)
           (where (= :users.city :cities.id)))
     (rename {:cities.name :city}))

throws following exception:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(*) JOIN cities ON (users.city = cities.id)' at line 1
  [Thrown class com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException]