pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: julionti@gmail.com
Subject: BUG #17662: Error on UPDATE with ()
Date: Mon, 24 Oct 2022 17:04:24 +0000
Message-ID: <17662-a7d95eb9537054b5@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17662
Logged by:          Julio Figueiredo
Email address:      julionti@gmail.com
PostgreSQL version: 14.4
Operating system:   CENTOS8
Description:        

The bellow command return : ERROR: source for a multiple-column UPDATE item
must be a sub-SELECT or ROW() expression
update table set
(column)=(value)
where 1=2

if I use
update table set
(column1,c2)=(v1,v2)
where 1=2

everithing is ok



view thread (2+ messages)  latest in thread

Message-ID: <17662-a7d95eb9537054b5@postgresql.org>
Permalink:  ../17662-a7d95eb9537054b5@postgresql.org/
Also on:    postgresql.org/message-id/17662-a7d95eb9537054b5@postgresql.org

 · 

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: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, julionti@gmail.com
  Subject: Re: BUG #17662: Error on UPDATE with ()
  In-Reply-To: <17662-a7d95eb9537054b5@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox