Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nI4oe-0001Mt-HA for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Feb 2022 08:28:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nI4od-0003Fe-9V for pgsql-bugs@arkaria.postgresql.org; Thu, 10 Feb 2022 08:28:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nI4oc-0003FU-W6 for pgsql-bugs@lists.postgresql.org; Thu, 10 Feb 2022 08:28:35 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nI4oa-0001Jc-3y for pgsql-bugs@lists.postgresql.org; Thu, 10 Feb 2022 08:28:34 +0000 Received: by mail-pj1-x102c.google.com with SMTP id v13-20020a17090ac90d00b001b87bc106bdso7762984pjt.4 for ; Thu, 10 Feb 2022 00:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=k9ASe/Ql2ql+T/RdGGJyfDd8oEXSs0ck2cII5LgY+0Q=; b=KwMvARTXatq1+iSiMYnCsWQZI2vsBeK9ANNzTbmNtkwMWkG+kxebmWttGps892Mw1I mGhQFNVZGedVpelYypEMpl0u83o4ySK+5/l7dnAfKnFj0necn3Hmze0dki/jyWXGkXlE e/TXaoChQLgGZpIvTMet5xpFiPyGvWELfCnPxJGm4d/zn2r2VE4oV1mt9PV+fY4F8HEQ yMx/HWd6i1vi6nlqTy4QQvIKwEhcNoEZA83ViY+NsUwQ4hGa9afKIBMLL8lI1legpV3U 9aQIqa5Mu0rMjPrmMU+Iq+LX6wBPXfdXfkzN4+LvoNgH4RRgXx3BRP1BILaqAXesYO+J zhug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=k9ASe/Ql2ql+T/RdGGJyfDd8oEXSs0ck2cII5LgY+0Q=; b=Pdt5XPd6gzMu7QK5JHTzxN2jLKgUNGSjzHncz12fhq/z5KIxa0h+rEb2TUPUKEECFr N7fDJzWQkG8MtIWKc5atXY/8ymiR7hdnT2CzItnvxh03HwfHD6hM1Sgpu4kwKroVLRO2 FA+/TRxrQaTQhI65zp9j2HKT4aSvHnZG1q1KDSDLo4e1R9cXFN8A6Q2dRH7H2BuBYoYd jamkAr2eIBBeImKIEi2i40TgaGvHflZUI0wqHIXPudz4F/7M7dZUdJFBxEBHFNexrL5+ HCN51a/I2jGpj8INpAI1Chw8nbubjdxCd0H2liRcsh2uJrV6aRTb1D0/CXtORRXtv/pW hAMg== X-Gm-Message-State: AOAM530TKRoRMFs7mxz2N/UmNKoZD9DNtVMTNWJmAwmNWKZxDHDU/Ntx 2qs2ypqG5tcXNYpH7muV2O4= X-Google-Smtp-Source: ABdhPJwbb3vHRNfnOe+/7xXpnj12MWYLdVf3ByXJgPdTkh0ik0NevafP11lQIvezRjval9Aghh3B5g== X-Received: by 2002:a17:90b:4aca:: with SMTP id mh10mr317793pjb.41.1644481709840; Thu, 10 Feb 2022 00:28:29 -0800 (PST) Received: from jrouhaud (2001-b011-1005-1017-0d03-b328-2e39-2b88.dynamic-ip6.hinet.net. [2001:b011:1005:1017:d03:b328:2e39:2b88]) by smtp.gmail.com with ESMTPSA id ml19sm1331458pjb.52.2022.02.10.00.28.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 00:28:29 -0800 (PST) Date: Thu, 10 Feb 2022 16:28:27 +0800 From: Julien Rouhaud To: =?utf-8?B?SsO8cmk=?= Tali Cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: Postgres 14 update clause bug Message-ID: <20220210082827.dalmm3paxdvpd7xf@jrouhaud> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Feb 10, 2022 at 07:29:54AM +0000, Jüri Tali wrote: > > Postgres 14 probably have Update clause bug > > If I write Update clause little bit wrong: > > UPDATE "table name" SET column1=1 and column2=2 > WHERE id=1; there is a syntax error, in set part columns must be delimited with comma > > Then postgres 14 do not give a error message and show that Update is successful, but without no updated columns. > POstgres 12 gives a error. Can you show the definition of the table on both system? Also did you add some extension or created some casts? I'm wondering if your problem is that you're actually executing something like that: UPDATE table_name SET column1 = (1::bool AND column2 = 2) WHERE id = 1; due to implicit int - bool cast, which aren't present in you pg12 instance (and shouldn't be present in vanilla postgres).