[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: casing of SQL statements? (was: svn commit: r1000370...)

From: Hyrum K. Wright <hyrum_wright_at_mail.utexas.edu>
Date: Thu, 23 Sep 2010 12:54:54 -0500

On Thu, Sep 23, 2010 at 12:44 PM, Greg Stein <gstein_at_gmail.com> wrote:
> On Thu, Sep 23, 2010 at 13:41, Philip Martin <philip.martin_at_wandisco.com> wrote:
>> Greg Stein <gstein_at_gmail.com> writes:
>>
>>> On Thu, Sep 23, 2010 at 05:16,  <philip_at_apache.org> wrote:
>>>> Author: philip
>>>> Date: Thu Sep 23 09:16:28 2010
>>>> New Revision: 1000370
>>>>
>>>> URL: http://svn.apache.org/viewvc?rev=1000370&view=rev
>>>> Log:
>>>> Use lower case in SQL queries instead of mixing upper and lower
>>>> cases inconsistently.  No functional change.
>>>
>>> I preferred the form with uppercase keywords and table names. It makes
>>> it much easier to see which columns are selected, and to read the
>>> expressions in WHERE clauses.
>>>
>>> IOW, I disagree with this change and would actually prefer fixing the
>>> all-lowercase queries that were scattered around.
>>
>> I don't mind whether we use upper case or lower case, I just want all
>> keywords in the same case, all table names in the same case and all
>> column names in the same case (and those 3 categories don't have to be
>> the same).  I chose lower case simply because there appeared to be
>> more lower case than uppercase.  I'm prepared to make the change to
>> upper case if that is what people want.  Or you can do it :)
>
> I'm fine with doing the work. Let's gather a few preferences, and if
> they support a change from all-lower-case, then I'll make it happen.
>
> People?

Even though it can be a bit unwieldy to type, I prefer the uppercased
keywords. Don't care so much about the table names, though it would
make sense to make them lowercased, since they are identifiers, and
not keywords.

-Hyrum
Received on 2010-09-23 19:55:48 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.