Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliasing entities in (with ..) #394

Open
Janderio opened this issue May 29, 2018 · 0 comments
Open

Aliasing entities in (with ..) #394

Janderio opened this issue May 29, 2018 · 0 comments

Comments

@Janderio
Copy link

Possible I did not find the answer and it already exist somewhere here, but is it possible to alias entity names in (with ..)?

Example something like:

(with orders
    (with address) ;delivery
    (with contact ;person responsible
        (with address))) ;;and the address for invoices of this persons order

would produce java.sql.SQLSyntaxErrorException: Not unique table/alias: address
possible way to solve:

(with orders
    (with address :as :delivery_address) ;delivery
    (with contact ;person responsible
        (with address :as :invoice_address))) ;;and the address for invoices of this persons order

But this does not work, again mariadb with mysql adapter and [korma "0.4.3"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant