Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
XP is just a number
 
PerlMonks  

Re: DBI case-insensitive placeholders

by dbwiz (Curate)
on Oct 27, 2003 at 09:41 UTC ( [id://302399]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to DBI case-insensitive placeholders

It is not a DBI issue. It's MySQL that has case insensitive matching.

However, you can force an exact match using the "BINARY" keyword.

There is no need to change the column definition, if what you need is just a case sensitive match.

my $sth = $dbh->prepare("SELECT * FROM data WHERE content = BINARY ? " +); $sth->execute("Perl"); # This will find "Perl", not "PERL" or "perl"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://302399]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.