Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XOO4P-0005G0-VQ for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Sep 2014 09:38:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XOO4P-0008KU-Ab for pgsql-bugs@arkaria.postgresql.org; Mon, 01 Sep 2014 09:38:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XOO4O-0008KN-8R for pgsql-bugs@postgresql.org; Mon, 01 Sep 2014 09:38:40 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XOO4G-00030q-6S for pgsql-bugs@postgresql.org; Mon, 01 Sep 2014 09:38:38 +0000 Received: from EX2007.Barthauer.de (ip4d15cc86.dynamic.kabel-deutschland.de [77.21.204.134]) by mrelayeu.kundenserver.de (node=mreue005) with ESMTP (Nemesis) id 0MBWuQ-1XWb0i0gpa-00AVTL; Mon, 01 Sep 2014 11:38:30 +0200 Received: from EX2007.Barthauer.de ([::1]) by EX2007.Barthauer.de ([::1]) with mapi id 14.03.0195.001; Mon, 1 Sep 2014 11:38:29 +0200 From: =?iso-8859-1?Q?W=F6hling=2C_Markus?= To: "'pgsql-bugs@postgresql.org'" Subject: Re: BUG #11304: UNION query with NULL values fails Thread-Topic: BUG #11304: UNION query with NULL values fails Thread-Index: AQHPxcZ3d3+8UD0ZTUepSvxi5eYSdpvsAXLQ Date: Mon, 1 Sep 2014 09:38:29 +0000 Message-ID: <34B6D505372CB84999C37498E98EB1E60374464B@EX2007.Barthauer.de> References: <20140828213751.2532.54130@wrigleys.postgresql.org> <1409325370266-5816904.post@n5.nabble.com> In-Reply-To: <1409325370266-5816904.post@n5.nabble.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.0.113] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Provags-ID: V02:K0:e2fAWBDDkIbqeGRXxNgK0ASPrj/VdWnkmude8Am7gL2 q24XcMJifomI0GOTtailTs6yX/kvLfoUGqtZYFPioy1jp5VuAX 0B2B+eXiRGX1wgjLYSoeR8ZXbubP1HHQRerBa3U23+B4qRvqlW MBAXXMtnnIBLu8wspLnSJR+yat57qsvBKmORMsXJU3CYOKq5BR eCD/ryMIenrNpF/1HbcWFaYJ2ndOHDm8xPbQwQW7PoCO3STw4f 2uCVTBGTW7Zi/6EBGgOs3cbQnacbromWb1o3T5XUVT+EWRvFT3 +3hpbte+bh30AZByIrN20mZc1b1uv1c4UZoaaPWvRgAEszkRtj YG1GHEBODU0CI1OPsSLY+Yz6hfLtgyB4f+IKdzwGLbFynnK/kv jK9AOxml61CsMkdAidJa35mgEZnX/9my/Q= X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -3.0 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org I want to clarify what's my problem with the "untyped" NULL values. I have to build SQL queries dynamically. Basically it's something like merg= ing different queries (or query parts) into a bigger query. I don't know the data types of the "source" columns und I have to add NULL = columns to the resulting query. This combination is causing the trouble, and for me there's no way to work = around this issue in another way. Hope that helps. Markus --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs