From: Ian Barwick <barwick@gmx.net>
To: nolan@celery.tssi.com
To: scrappy@postgresql.org
Cc: scrappy@postgresql.org
Cc: JanWieck@Yahoo.com
Cc: pgman@candle.pha.pa.us
Cc: josh@agliodbs.com
Cc: mail@joeconway.com
Cc: pgsql-advocacy@postgresql.org
Subject: Re: [GENERAL] interesting PHP/MySQL thread
Date: Mon, 23 Jun 2003 10:01:20 +0200
Message-ID: <200306231001.20653.barwick@gmx.net> (raw)
In-Reply-To: <20030623053352.1457.qmail@celery.tssi.com>
References: <20030623053352.1457.qmail@celery.tssi.com>
On Monday 23 June 2003 07:33, nolan@celery.tssi.com wrote:
> > > Personally, if I want case insensitivity, I'll WRITE IT INTO THE CODE,
> > > but I can see how some people might think that 'NOLAN', 'Nolan' and
> > > 'nolan' should be considered as the same data.
> >
> > Oh, you mean like "SELECT * FROM table WHERE field ~* 'nolan';"?
>
> No, I mean as in "SELECT * FROM table WHERE field = 'nolan';"
bad memories ... of website login system ... using MySQL ... returning
several results for a unique login / pw combination ...
To stop this behaviour in MySQL one needs to define CHAR and VARCHAR types
with a "BINARY" attribute, e.g.:
CREATE TABLE tbl (field VARCHAR(24) BINARY)
My fault though for not reading the manual attentively enough ;-).
-> http://www.mysql.com/doc/en/CHAR.html
Ian Barwick
barwick@gmx.net
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: barwick@gmx.net, nolan@celery.tssi.com, scrappy@postgresql.org, JanWieck@Yahoo.com, pgman@candle.pha.pa.us, josh@agliodbs.com, mail@joeconway.com, pgsql-advocacy@postgresql.org
Subject: Re: [GENERAL] interesting PHP/MySQL thread
In-Reply-To: <200306231001.20653.barwick@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox