public inbox for [email protected]
help / color / mirror / Atom feedFrom: Peter Geoghegan <[email protected]>
To: Tim Starling <[email protected]>
Cc: [email protected]
Subject: Re: Upsert error "column reference is ambiguous"
Date: Mon, 28 Apr 2025 09:30:02 -0400
Message-ID: <CAH2-Wzn+euNGrOyaO0xxbJMo7od27jsBdwfS+C+wvbcPsWEd3A@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Mon, Apr 28, 2025 at 12:56 AM Tim Starling <[email protected]> wrote:
> Our application has an upsert method which takes the assignment
> "v=v+1" as a string. It is feasible to split it on the equals sign
> into the destination field and expression components, but it is not
> feasible to parse the expression or to require callers to supply an
> AST tree for the expressions they give us. It is not feasible to
> require callers to prefix all field names with the table name.
You can use an alias for the target table name. Is it feasible to
require callers to prefix all field names with a generic table name
alias?
--
Peter Geoghegan
view thread (5+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Upsert error "column reference is ambiguous"
In-Reply-To: <CAH2-Wzn+euNGrOyaO0xxbJMo7od27jsBdwfS+C+wvbcPsWEd3A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox