Skip to content

Rename throws SyntaxErrorException #126

@ghost

Description

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions