On Mon, Sep 21, 2020 at 4:41 PM [email protected] <[email protected]> wrote:

> I'm looking for a way to grab records where a field is less than 4
> characters.
>
> *Sequel(len(:postal)) < 4*
>
> This trips up, and I can't find any references to length in the docs.  Is
> there a solution?
>

You should be able to use:

   Sequel.char_length(:field) < 4

Discussed here:
http://sequel.jeremyevans.net/rdoc/files/doc/sql_rdoc.html#label-Portable-2FEmulated+Functions

Thanks,
Jeremy

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/CADGZSSf7ZkNVoGGJW3kYXFmsM2rtZBeBntKK8BoFkL6aCORhCA%40mail.gmail.com.

Reply via email to