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

How does OrderBySqlFormula support prepared statement? #118

Open
abcfy2 opened this issue Oct 11, 2018 · 1 comment
Open

How does OrderBySqlFormula support prepared statement? #118

abcfy2 opened this issue Oct 11, 2018 · 1 comment

Comments

@abcfy2
Copy link

abcfy2 commented Oct 11, 2018

I find OrderBySqlFormula class support ORDER BY native sql, but how to use prepared statement? I think it's useful.

E.g:

criteria {
    order(OrderBySqlFormula.sqlFormula('? + ?', [args.one, args.two]))
}
@ilopmar
Copy link
Collaborator

ilopmar commented Oct 15, 2018

I haven't taken a look into this and I'm not sure if it would be possible or not.

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

No branches or pull requests

2 participants