public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Tom Lane <[email protected]>
Cc: Tim Starling <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Upsert error "column reference is ambiguous"
Date: Mon, 28 Apr 2025 08:21:55 -0700
Message-ID: <CAKFQuwYQYsLhn-oCXi7dVg=k2sd_D9i7yu+LDHBMwYYXcM6i+Q@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

On Monday, April 28, 2025, Tom Lane <[email protected]> wrote:

>
> AFAIK, "ON CONFLICT" is a Postgres-ism.  Exactly which constructs
> in exactly which other databases are you citing as precedent?
>

I confirmed the SQLite reference from the original email.

“The upsert above inserts the new vocabulary word "jovial" if that word is
not already in the dictionary, or if it is already in the dictionary, it
increments the counter. The "count+1" expression could also be written as
"vocabulary.count". PostgreSQL requires the second form, but SQLite accepts
either.”

https://sqlite.org/lang_upsert.html

David J.


view thread (12+ 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], [email protected]
  Subject: Re: Upsert error "column reference is ambiguous"
  In-Reply-To: <CAKFQuwYQYsLhn-oCXi7dVg=k2sd_D9i7yu+LDHBMwYYXcM6i+Q@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