pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Dana Powers <dana@fphome.com>
Cc: pgsql-general@hub.org
Subject: Re: [GENERAL] Case sensitivity
Date: Mon, 20 Sep 1999 12:32:13 -0400 (EDT)
Message-ID: <199909201632.MAA05831@candle.pha.pa.us> (raw)
In-Reply-To: <37E659BA.A1BA8EFF@fphome.com>

> > > I am evaluating whether it is possible to migrate our Contact manager
> > > system to Postgres on Linux, but I am having difficulty because the
> > > client software was most moronically programmed to access tables using
> > > wildly different case structures, i.e. a table might be created
> > > 'MYTABLE', and accessed 'mytable', 'MyTable' or 'MYTABLE' depending on
> > > the context. Is there anyway to disable case-sensitivity in this case,
> > > either through Postgres config, or the ODBC drivers? I have no access to
> > 
> > We have no trouble accessing tables with different case.  TABLE, Table,
> > table and taBLe are all the same to us, unless you put the table name in
> > double-quotes.
> 
> The problem is, if you create a table without "", the table name
> defaults to lower case, and all non ""ed references to the table also
> default to all lower case but if you create a table with ""s you cannot
> access it unless you specify all references to it also in ""s. My
> question is, is there anyway to nullify the "" behavior and set all
> tables to lowercase?

So you are creating with quotes, but want to access it without quotes? 
Can't do that.  Why not just remove the quotes from the queries?  I
suppose you could hack out the quote stuff to force everything to
lowercase, even if it has quotes.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (80+ messages)  latest in thread

Message-ID: <199909201632.MAA05831@candle.pha.pa.us>
Permalink:  ../199909201632.MAA05831@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199909201632.MAA05831@candle.pha.pa.us

 · 

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-general@postgresql.org
  Cc: maillist@candle.pha.pa.us, dana@fphome.com, pgsql-general@hub.org
  Subject: Re: [GENERAL] Case sensitivity
  In-Reply-To: <199909201632.MAA05831@candle.pha.pa.us>

* 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