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

sort by column of optional table does not work for MariaDB #2092

Open
robstoll opened this issue Dec 16, 2019 · 0 comments
Open

sort by column of optional table does not work for MariaDB #2092

robstoll opened this issue Dec 16, 2019 · 0 comments

Comments

@robstoll
Copy link
Contributor

robstoll commented Dec 16, 2019

  1. If you have a bug report, use the applicable parts of the following template (modify as needed):

DESCRIPTION:
if you want to order based on a left joined table, then Slick generates the following order by clause:

order by (syntheticColumn, column)

Where syntheticColumn is the column introduce by slick to handle the left join, looks in SQL something along the line of:

(case
  when (x2.`personId` is null) then null
  else 1 end) as x20

This works for H2 but not for mariaDB

EXPECTED RESULT:
For mariaDB it should be

order by syntheticColumn, column

SETUP:
db: mariaDB

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