clojureql icon indicating copy to clipboard operation
clojureql copied to clipboard

Rename throws SyntaxErrorException

Open ghost opened this issue 13 years ago • 0 comments

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]

ghost avatar Mar 02 '12 16:03 ghost