On Friday, April 27, 2012 3:31:05 AM UTC-7, António Alegria wrote: > > Hello, > > I'm trying to do a SELECT field % 24 FROM ... in SQL Server using Sequel's > DSL but I can't find a way to do it. :field1 % 24 raises an error. > > Is there something like sql_function but for custom operators? > > There is currently no DSL support for the modulus operator, you would have to use a literal string. Adding DSL support is not difficult, but does require testing on the supported databases, so that it can be emulated on the databases that do not natively support it. I'll add it to my todo list.
Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/u6uPP9T4lqoJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
