Hello, Jeremy and community!
I have a small issue with *position* function.
I created query with small part
where { "position(geolocations.path in '#{geolocation}') > 0" } # => WHERE
(position(geolocations.path in 'PL.DOL') > 0)
It works brilliant, but I wanna did everything which is possible with
sequel functions.
I tried code similar to this, but it produces not valid SQL code.
where(Sequel.function(:position, geolocations__path: geolocation) > 0 ) #
=> WHERE (position(("geolocations"."path" = 'PL.DOL')) > 0)
What do I wrong?
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.