pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Barwick <barwick@gmx.net>
To: Jordan Reiter <jordan@breezing.com>
To: pgsql-sql@postgresql.org
Subject: Re: Case Sensitive "WHERE" Clauses?
Date: Fri, 27 Sep 2002 01:00:14 +0200
Message-ID: <200209270100.14503.barwick@gmx.net> (raw)
In-Reply-To: <a05100312b9b8f9c321b3@[63.172.201.5]>
References: <a05100312b9b8f9c321b3@[63.172.201.5]>

On Thursday 26 September 2002 19:54, Jordan Reiter wrote:
> Are string comparisons in postgresql case sensitive?

Yes, unless you specify otherwise.

Are you sure you are using the right database? I can
reproduce similar results, but only like this:

mysql>  create temporary table foo (ch char(2), vc varchar(2));
Query OK, 0 rows affected (0.12 sec)

mysql> insert into foo values ('aa','AA');
Query OK, 1 row affected (0.02 sec)

mysql> select * from foo where ch = 'aa';
+------+------+
| ch   | vc   |
+------+------+
| aa   | AA   |
+------+------+
1 row in set (0.01 sec)

mysql> select * from foo where ch = 'AA';
+------+------+
| ch   | vc   |
+------+------+
| aa   | AA   |
+------+------+
1 row in set (0.00 sec)

mysql> select * from foo where vc = 'aa';
+------+------+
| ch   | vc   |
+------+------+
| aa   | AA   |
+------+------+
1 row in set (0.00 sec)


Regards

Ian Barwick
barwick@gmx.net






view thread (13+ messages)  latest in thread

Message-ID: <200209270100.14503.barwick@gmx.net>
Permalink:  ../200209270100.14503.barwick@gmx.net/
Also on:    postgresql.org/message-id/200209270100.14503.barwick@gmx.net

 · 

reply

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-sql@postgresql.org
  Cc: barwick@gmx.net, jordan@breezing.com
  Subject: Re: Case Sensitive "WHERE" Clauses?
  In-Reply-To: <200209270100.14503.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