Re: How to ensure column names are double quoted while using execute format when building a stored procedure?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Shaozhong SHI <shishaozhong(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: How to ensure column names are double quoted while using execute format when building a stored procedure?
Date: 2021-12-16 22:11:52
Message-ID: CAKFQuwZ-5VyPiFLPVYZcH-37g513OuJvj6kHkw_skfKyW1yFQA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Dec 16, 2021 at 3:04 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

>
> This:
>
> 'count of nulls in "UNIQUE_REFERENCE_NUMBER"'
>
> is just plain incorrect syntax.
>

<single quote>count of nulls in <double quote>UNIQUE_REFRENCE_NUMBER<double
quote><single quote>

That is not invalid syntax. It is just literal single quoted text - the
double quotes are simply characters in the string.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2021-12-16 22:15:42 Re: How to ensure column names are double quoted while using execute format when building a stored procedure?
Previous Message Adrian Klaver 2021-12-16 22:04:03 Re: How to ensure column names are double quoted while using execute format when building a stored procedure?