Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TIeiY-0000R1-IP for pgsql-jdbc@postgresql.org; Mon, 01 Oct 2012 12:03:22 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TIeiW-0003vR-7J for pgsql-jdbc@postgresql.org; Mon, 01 Oct 2012 12:03:22 +0000 Received: by pbbrr4 with SMTP id rr4so7625632pbb.19 for ; Mon, 01 Oct 2012 05:03:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=l8KcVRhxm2LJjghqGk9mhXxagFtrqd7GLKRIVlbGXs0=; b=nw/xSdZLLd3JR323pItYL41RTlDplQg/oMYMPW2FuLWhsZQQ3winaspqb0ly9rRid2 BJiIcsXgsH0HBfOrKhweJmKnTouDab8LFb5GKUG2uKf/xC4oEbzRb1EtZ/8/50mizpsu mEccsDY7CecG+1/9A9UQ1WbAmJbMhA8KkfvbW7QUC50ZDQ5npJCO0XHIR2p104/zsRyU NAqCjBqljaw7G/JFJBb6W9dU4LmON0ISzvDWMLcuXvX54C3vjC5s/NDXJ/f/h+gwn7J1 2BcoSC4DFU6LVQPD4De+8VAzrnyjjy5bg24bNB3S/pc043S+UNcdiugtfX9q4GgNLu+o vRdg== Received: by 10.66.85.70 with SMTP id f6mr36039192paz.7.1349092996254; Mon, 01 Oct 2012 05:03:16 -0700 (PDT) Received: from ayaki.localdomain (58-7-144-234.dyn.iinet.net.au. [58.7.144.234]) by mx.google.com with ESMTPS id oe5sm10202211pbb.8.2012.10.01.05.03.13 (version=SSLv3 cipher=OTHER); Mon, 01 Oct 2012 05:03:14 -0700 (PDT) Message-ID: <5069867E.80208@ringerc.id.au> Date: Mon, 01 Oct 2012 20:03:10 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: the6campbells , PostgreSQL JDBC Subject: Re: data set combination of integer and decimal/numeric returns wrong result type References: <50662D84.90202@ringerc.id.au> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmurlUfaNweb5it3Wy8DcOxVStjNTypZhKCKyL7+P0pU0HrNXCk3oyKJYsHbvO59DGssTzQ X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/1 X-Sequence-Number: 23325 On 09/29/2012 07:11 AM, the6campbells wrote: > select intcolumn from t1 > union > select decimalcolumn from t2 > > select intcolumn from t1 > union > select numericcolum from t2 > > then look at nullif, coalesce, case when end variants using combinations > of the two data types Those aren't complete, runnable statements. Provide table definitions and real statements if reporting a bug, please. Show expected vs actual results on PgJDBC and (if possible) other DBs and JDBC drivers. If possible provide standalone Java code that compiles and runs to demonstrate the bug; that way the code can be run against any patched driver versions to see if they fix the issue. Also, please reply to the mailing list, not directly to me. > compare the specification in ISO-SQL 20xx to Postgres in general and as > applicable via the Postgres JDBC driver if that is colouring the issue etc Quotes and page numbers / section numbers? Please be more specific. While I could probably find the details, it's currently time I cannot spend on that. -- Craig Ringer