Re: SQL keywords are suddenly case sensitive - Mailing list pgsql-general

From Lee Hachadoorian
Subject Re: SQL keywords are suddenly case sensitive
Date
Msg-id 516DE149.8060207@gmail.com
Whole thread Raw
In response to Re: SQL keywords are suddenly case sensitive  (Adrian Klaver <adrian.klaver@gmail.com>)
Responses Re: SQL keywords are suddenly case sensitive
List pgsql-general
On 04/16/2013 07:31 PM, Adrian Klaver wrote:
> On 04/16/2013 02:46 PM, Lee Hachadoorian wrote:
>> List,
>>
>> SQL seems to be behaving in a case-sensitive manner:
>>
>> universe=# select 1;
>>   ?column?
>> ----------
>>          1
>> (1 row)
>>
>> universe=# SELECT 1;
>> ERROR:  syntax error at or near "SELECT 1"
>> LINE 1: SELECT 1;
>>          ^
>> I cannot figure out how this happened, and Google is not helping because
>> all I'm getting is information about case-sensitivity in identifiers or
>> in string comparison. I didn't even think this was possible, as I've
>> always switched between lower case and upper case keywords, usually
>> using lower case while testing and upper case to prettify scripts that I
>> will be saving for reuse.
>
> Interesting.
>
> Does this behavior survive logging out and then back into a session?

It survives complete restart. (This is a laptop that I use for
development and analysis, not a high-availability server, so the first
thing I did when I realized my scripts started failing was reboot.)

>
> Do you have any other client using the database that exhibits this
> behavior?

Same behavior in both psql and pgAdmin.

Regards,
--Lee

--
Lee Hachadoorian
Assistant Professor in Geography, Dartmouth College
http://freecity.commons.gc.cuny.edu



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: SQL keywords are suddenly case sensitive
Next
From: Lee Hachadoorian
Date:
Subject: Re: SQL keywords are suddenly case sensitive