0

When using Sequel, is it possible to produce a "SQL WHERE" clause that contains "COLLATE AS?":

ColumnName COLLATE Latin1_General_CS_AS

If not, then what can I use to do this?

I searched through the Sequel documentation and Stack Overflow and this has not been mentioned there.

tonysepia
  • 3,340
  • 3
  • 27
  • 45

1 Answers1

4

Sequel doesn't have direct support for COLLATE, so you have to use literal SQL for that part:

where(Sequel.lit('? COLLATE Latin1_General_CS_AS', :ColumnName))

Jeremy Evans
  • 11,959
  • 27
  • 26