Re: Trigger function cannot reference field name with capital letter - Mailing list pgsql-general

From Alban Hertroys
Subject Re: Trigger function cannot reference field name with capital letter
Date
Msg-id CAF-3MvPtxpJGk1B9HHeYCN-1CtXUi2zzb3Yrrvat+f1zGe9QFg@mail.gmail.com
Whole thread Raw
In response to Re: Trigger function cannot reference field name with capital letter  (Patrick Dung <patrick_dkt@yahoo.com.hk>)
List pgsql-general
On 14 August 2014 08:10, Patrick Dung <patrick_dkt@yahoo.com.hk> wrote:
> Thanks all for the help.
>
> BTW, letter casing is just a preference.
> Some people liked to use all small caps, some liked to use all big caps.
> I sometimes found that mixed case is more meaningful for the filed (eg.
> serialnumber vs serialNumber)
>
> What is your preference or suggestion?

You can use whatever case you like, as long as you never quote your
identifiers so they stay case-insensitive. As long as you stick to
that rule, you can use upper or lower camel caps or all upper or lower
case in your SQL.

The need for quoting identifiers often comes from ORM's that attempt
to preserve case, which is totally unnecessary and causes more trouble
than it has benefits.

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.


pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Pass where clause to a function
Next
From: Thomas Kellerer
Date:
Subject: How to cast to regprocedure with OUT parameters