Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZwTWE-0004WN-1H for pgsql-odbc@arkaria.postgresql.org; Wed, 11 Nov 2015 11:24:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZwTWD-0005q8-Im for pgsql-odbc@arkaria.postgresql.org; Wed, 11 Nov 2015 11:24:49 +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_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZwTVr-0005Qi-4W for pgsql-odbc@postgresql.org; Wed, 11 Nov 2015 11:24:27 +0000 Received: from mail2.asahi-net.or.jp ([202.224.39.198]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZwTVi-0002vF-TI for pgsql-odbc@postgresql.org; Wed, 11 Nov 2015 11:24:26 +0000 Received: from [192.168.1.8] (aa029251.dynamic.ppp.asahi-net.or.jp [110.5.29.251]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 6CE0118D3C; Wed, 11 Nov 2015 20:24:10 +0900 (JST) Subject: Re: SQL_DATA_AT_EXEC processing broken for large objects in nightly git To: Heikki Linnakangas References: <561F954E.7020808@serena.com> <5639B85F.7030408@dream.email.ne.jp> <5639E621.1020505@iki.fi> <563A159A.5080104@dream.email.ne.jp> <5640892B.7060700@iki.fi> Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <5643255C.2060207@dream.email.ne.jp> Date: Wed, 11 Nov 2015 20:24:12 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5640892B.7060700@iki.fi> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 2015/11/09 20:53, Heikki Linnakangas wrote: > On 11/04/2015 04:26 PM, Inoue, Hiroshi wrote: >> >> >> On 2015/11/04 20:04, Heikki Linnakangas wrote: >>> On 11/04/2015 09:48 AM, Inoue, Hiroshi wrote: >>>> Hi, >>>> >>>> I was able to reproduce it here. >>>> Because I can't understand the current code at once, please give me >>>> some >>>> time >>>> to solve the problem. >>> >>> I also started looking at this last week, and came up with a patch >>> that I think fixes it, but I got distracted before completing it and >>> replying here. So here's what I came up with... >> >> The solution seems to generate 2 transactions for 1 insertion. > > Hmm, you're right, although that doesn't seem to be a new issue. The > 09.03.0400 driver does the same, see attached logs from > log_statements=all. Would be nice to fix that, but it's a separate issue. Oh you are right. I will examine it. > > >> The insertion seems to be rejected when ByteaAsLongVarBinary=1. > > Oh. It works for me. How are you testing that? I define LO type and set ByteaAsLongVarBinary=1. The failure is #ERROR: column "large_data" is of type LO but expression is type "bytea" . regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc