Re: Trigger function cannot reference field name with capital letter

From: Patrick Dung <patrick_dkt(at)yahoo(dot)com(dot)hk>
To: John R Pierce <pierce(at)hogranch(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trigger function cannot reference field name with capital letter
Date: 2014-08-14 06:10:51
Message-ID: 1407996651.98969.YahooMailNeo@web193506.mail.sg3.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

On Thursday, August 14, 2014 12:18 PM, John R Pierce <pierce(at)hogranch(dot)com> wrote:

On 8/13/2014 9:13 PM, John R Pierce wrote:
>
> SELECT * from tbl1 where new."postTimestamp' > timestamp '2014-01-01
> 00:00:00'

oops.

SELECT * from tbl1 where new."postTimestamp" > timestamp '2014-01-01
00:00:00'

I meant.  I should proof what I write, hah!

--
john r pierce                                      37N 122W
somewhere on the middle of the left coast

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2014-08-14 06:17:08 Re: Pass where clause to a function
Previous Message Andrew Bartley 2014-08-14 05:59:23 Re: Pass where clause to a function