Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJHGu-0004cL-Sn for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Apr 2019 12:45:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJHGt-0004Qy-GV for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Apr 2019 12:45:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJHGt-0004Nq-7P for pgsql-bugs@lists.postgresql.org; Wed, 24 Apr 2019 12:45:07 +0000 Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJHGq-0006on-Cv for pgsql-bugs@lists.postgresql.org; Wed, 24 Apr 2019 12:45:06 +0000 Received: by mail-qt1-x82a.google.com with SMTP id l17so855032qtp.2 for ; Wed, 24 Apr 2019 05:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=AsZ+0rp2SALYFvYssd1CPPAaJT3ORXKFqGrJbSgIzRE=; b=w5o58poMlCkFkWLK19jT7AtIYIifREnP0uh8uHFUIitBpaoVhi9tD6SXJF7ElLEeVR Jp+1Lq3CmUYOwIZ35gCYnSrYw4gU4XksRfnoK/QcLBiBFfhT1ldjyPZoMm4ERXxbER7n tUEHqOojfWvKjz8Y0qRi3eJLFeCGM8Ejqv1vZ0VHBEbYLOZb35cXs681IapBP/jqklYP ZBWkYaAo3uS8tQzH81EEMgyeTdS0wCNuxWDF9+1tP67yZt+uv8tZ6e7lH57zF1RW2y+i 4FnPIAVnoVZrR/TSRkPOMdaxyd4fBks/Rc3NV1IxsoeoGHzRwg3+wbRenPNOWsidh/Pb 5KiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=AsZ+0rp2SALYFvYssd1CPPAaJT3ORXKFqGrJbSgIzRE=; b=W7+re2kEmPMYj+7NthIkfvSqeFAbcX302NsJrFTwBnGATpBmM2PI0vrtHU/B8TUsK8 GKQGhaWH08kMGYDsoNjnlsjBwlyOPVTrgtmIj+6GPCE0p9Q8P8u/bCmeSNFrWuIxQkJD zgajLYcvOgUfs9LY00qEILuM2kSylLH5GMPvVDOBD/dlPa2+LTq9WuoLRadY1Y1SES2w dPzg8P2VaMpbjcOi2998dik5njhh61uVE0/Ux/cIutqFOTA22Z2HFxxHeJquMZsv93OU 932vVmf0pAT3zNS/6C63ucJ0Wur6diemtkOe9yTUl3jAZmf3cVOAXMnYQ5z01ybjuJe/ 5HFw== X-Gm-Message-State: APjAAAX5yzPrZjW9rsn/FmkQeSdST/jPVeaNu3Ae77ZkEnz+pJnveQIn InkzXg81PVSJQVJO4+a3oZdjAWtjW48= X-Google-Smtp-Source: APXvYqziGKwLZuoiFznIKK71c/juAT6botsKIiFGWBX1XlDsFFfpMqeJyzo4lxKmf86Hv75/f002Fg== X-Received: by 2002:aed:2571:: with SMTP id w46mr7011013qtc.222.1556109902832; Wed, 24 Apr 2019 05:45:02 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id f47sm11713993qta.80.2019.04.24.05.45.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2019 05:45:02 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 295991206C4; Wed, 24 Apr 2019 08:44:59 -0400 (-04) Date: Wed, 24 Apr 2019 08:44:59 -0400 From: Alvaro Herrera To: Jan =?iso-8859-1?Q?Skyd=E1nek?= Cc: pgsql-bugs@lists.postgresql.org Subject: Re: bug: evil autoConcat when each string is on new line Message-ID: <20190424124459.GA26812@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Apr-24, Jan Skydánek wrote: > Works (definitely NOT expected): > SELECT > 'aaa' > 'bbb' > 'ccc' > ; -- result is: 'aaabbbccc' > > I really hope this behavior is not intentional. Actually it's the SQL standard that defines that it must work in exactly that way. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services