Re: SQL server application porting headache

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Oskar Berggren <beo(at)sgs(dot)o(dot)se>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: SQL server application porting headache
Date: 2002-06-25 00:31:39
Message-ID: 20020625103139.B1928@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Jun 23, 2002 at 08:44:50PM +0200, Oskar Berggren wrote:
> I have tried this and it seems to work for the query i mentioned in
> my original posting, which is as expected since that one actually
> use correct capitalization. However, shortly afterwards the
> application issue the query:
>
> SELECT "PassWord" FROM "Operators" WHERE Name='...' AND Password='...';
>
> Since the column is called PassWord, you can see why I'm feeling
> I bit down right now...

Would it not be easier if the code simply lowercased everything, including
quoted identifiers. This is totally wrong but will produce the effect you
want (unless ofcourse, the names of the output columns important).

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2002-06-25 00:37:14 Re: Redirecting Output
Previous Message Stephan Szabo 2002-06-25 00:28:10 Re: calling a plpgsql procedure