Okay, I THINK this is a PHP question...
I've been mucking with PHP for awhile now, but just recently I've been
poking at some ajax stuff, and I ran into something confusing; my
Queries were coming back case-sensitive.
I.e. WHERE user_name LIKE 'd%' would return "david" but not "Daryl"
That's weirding me out- I thought sql queries were case-insensitive by
default. (Admittedly, I haven't done much work with the kind of user-
input data where that'd ever be a problem.)
The equivalent mysqli query seems to be case insensitive- but I think
it's doing some sort of automatic collation thing... and my
destination server lacks mysqli.
....what's going on? Am I tripping on some sort of base-level thing I
just haven't run into before because I so seldom use LIKE, or is this
actually... odd? All the references I find say this sort of query is
supposed to be case-insensitive... :(
PHP 5.2.5
confused,
-Derik
I've been mucking with PHP for awhile now, but just recently I've been
poking at some ajax stuff, and I ran into something confusing; my
Queries were coming back case-sensitive.
I.e. WHERE user_name LIKE 'd%' would return "david" but not "Daryl"
That's weirding me out- I thought sql queries were case-insensitive by
default. (Admittedly, I haven't done much work with the kind of user-
input data where that'd ever be a problem.)
The equivalent mysqli query seems to be case insensitive- but I think
it's doing some sort of automatic collation thing... and my
destination server lacks mysqli.
....what's going on? Am I tripping on some sort of base-level thing I
just haven't run into before because I so seldom use LIKE, or is this
actually... odd? All the references I find say this sort of query is
supposed to be case-insensitive... :(
PHP 5.2.5
confused,
-Derik
Comment