Jump to content

MySQL case-sensitive with binary


joquius

Recommended Posts

;D

 

I have a query which searches a mediawiki database, the problem being the case sensitive nature of the binary collation which is used for text revisions in mediawiki. I know that I could simply compare both lowercase, or ucfirst() the search string but it just lengthens the query. I would use regex, but I'm not to sure if pattern modifiers even exist in the regex that comes with MySQL 5.0.

 

Oh and I'm definitely not changing the collation in the database itself.  :-X

 

Any help is appreciated

Link to comment
https://forums.phpfreaks.com/topic/55391-mysql-case-sensitive-with-binary/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.