kaleidos / grails-postgresql-extensions

Grails plugin to use postgresql native elements such as arrays, hstores,...
Apache License 2.0
78 stars 63 forks source link

How does OrderBySqlFormula support prepared statement? #118

Open abcfy2 opened 5 years ago

abcfy2 commented 5 years ago

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 commented 5 years ago

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