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

Custom Function doubleParam #648

Closed
lucasortigoso opened this issue Oct 2, 2019 · 1 comment
Closed

Custom Function doubleParam #648

lucasortigoso opened this issue Oct 2, 2019 · 1 comment

Comments

@lucasortigoso
Copy link

lucasortigoso commented Oct 2, 2019

Hi,
How can i use doubleParam in CustomFunction syntax?
Example:
`
val latUser = -23.587420
val lngUser = -46.679119

val distanceBetween = CustomFunction("fn_GetDistanceBetween", DoubleColumnType(), TblFoo.lastLocationLat, TblFoo.lastLocationLng, doubleParam(latUser), doubleParam(lngUser))
`
Thanks.

@lucasortigoso
Copy link
Author

Just missing
fun doubleParam(value: Double): Expression<Double> = QueryParameter(value, DoubleColumnType()) at file Op.kt

image

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