On Tue, Jun 06, 2000 at 11:10:40AM -0700, John McNally wrote:
> Can you add a DB method ignoreCaseInOrderBy() similar to toUpperCase()?  And
> copy the code in the other DB adaptors from toUpperCase to
> ignoreCaseInOrderBy().

That sounds like the right solution to me...like what I was suggesting
to replace toUpperCase for case sensitivity in general - the problem
with toUpperCase is that converting to upper case is a specific
implementation of a solution to a more general problem - an adaptor
interface like DB should contain expressions of intent, not expressions
of specific solutions.

So DB should have:

ignoreCase()
respectCase()   (which for MySQL adds a 'BINARY' prefix to an expression)
ignoreCaseInOrderBy()
respectCaseInOrderBy()

and perhaps others?

If you are going to follow John's suggestion Leon, perhaps you could
look at adding all these?

-- 
Sean Legassick
[EMAIL PROTECTED]


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to