Skip site navigation (1) Skip section navigation (2)

Re: [GENERAL] interesting PHP/MySQL thread

From: Ian Barwick <barwick(at)gmx(dot)net>
To: nolan(at)celery(dot)tssi(dot)com, scrappy(at)postgresql(dot)org (The Hermit Hacker)
Cc: scrappy(at)postgresql(dot)org (The Hermit Hacker),JanWieck(at)Yahoo(dot)com (Jan Wieck),pgman(at)candle(dot)pha(dot)pa(dot)us (Bruce Momjian),josh(at)agliodbs(dot)com (Josh Berkus), mail(at)joeconway(dot)com (Joe Conway),pgsql-advocacy(at)postgresql(dot)org (\"\"\"Advocacy PostgreSQL\"\"\"),pgsql-general(at)postgresql(dot)org (PostgreSQL-general)
Subject: Re: [GENERAL] interesting PHP/MySQL thread
Date: 2003-06-23 08:01:20
Message-ID: 200306231001.20653.barwick@gmx.net (view raw or flat)
Thread:
Lists: pgsql-advocacypgsql-docspgsql-general
On Monday 23 June 2003 07:33, nolan(at)celery(dot)tssi(dot)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(at)gmx(dot)net

In response to

pgsql-docs by date

Next:From: Viktor VislobokovDate: 2003-06-23 08:41:46
Subject: Updated Russian version of FAQ
Previous:From: Bruce MomjianDate: 2003-06-23 06:16:05
Subject: Re: [PATCHES] Synopsis inconsistencies

pgsql-advocacy by date

Next:From: Arjen van der MeijdenDate: 2003-06-23 09:21:25
Subject: Re: [GENERAL] interesting PHP/MySQL thread
Previous:From: Michael MeskesDate: 2003-06-23 06:33:54
Subject: Re: [pgsql-advocacy] MySQL gets $19.5 MM

pgsql-general by date

Next:From: Masse JacquesDate: 2003-06-23 08:11:30
Subject: Re: Urgent : Postgresql Client for linux
Previous:From: Shridhar DaithankarDate: 2003-06-23 07:50:09
Subject: Re: Urgent : Postgresql Client for linux

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group