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

clojure korma.core order 问题 #392

Open
82089862 opened this issue May 10, 2018 · 2 comments
Open

clojure korma.core order 问题 #392

82089862 opened this issue May 10, 2018 · 2 comments

Comments

@82089862
Copy link

82089862 commented May 10, 2018

Doing project upgrades, Previous paragraph korma.core code

korma0.3.0 code :
(last (select period
(fields :qjnd :qjyf)
(where {:dwdm dwdm :sfyjz 0})
(order :qjnd :desc :qjyf :desc)));

There is no problem in korma0.3.0,But there is a problem when calling koram0.4.3;
Then order how to write koram0.4.3 when encountered multiple values;
example

select qjnd ,qjyf
from period
where dwdm =dwdm and sfyjz=0
order by qjnd desc, qjyf desc;

@Janderio
Copy link

Janderio commented May 29, 2018

(last (select period
           (fields :qjnd :qjyf)
           (where {:dwdm dwdm :sfyjz 0})
           (order :qjnd :desc)
           (order :qjyf :desc)))

with sql only -> ... ORDER BY period.qjnd DESC, period.qjyf DESC

@82089862
Copy link
Author

Thank you, it has been resolved

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

2 participants