X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id F2EEDD1B8B3 for ; Wed, 27 Aug 2003 23:45:08 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 76424-08 for ; Wed, 27 Aug 2003 20:44:40 -0300 (ADT) Received: from mx1.espl.com.au (CPE-229-130-174-203.syd.ntt.net.au [203.174.130.229]) by svr1.postgresql.org (Postfix) with ESMTP id B7FE3D1B52C for ; Wed, 27 Aug 2003 20:44:20 -0300 (ADT) Received: (from mail@localhost) by mx1.espl.com.au (8.11.0/8.11.0) id h7RNiet31570; Thu, 28 Aug 2003 09:44:40 +1000 X-Authentication-Warning: mx1.espl.com.au: mail set sender to using -f Received: from fw.espl.com.au (203.174.130.226, claiming to be "fs.espl.com.au") by mx1.espl.com.au with SMTP id smtpdWOX8TR; Thu, 28 Aug 2003 09:44:28 EST Received: from moya (moya [192.168.20.55]) by fs.espl.com.au (8.11.0/8.11.0) with SMTP id h7RNi9Q14858; Thu, 28 Aug 2003 09:44:09 +1000 Message-ID: <002401c36cf5$c0446140$3714a8c0@moya> From: "Jol Valentine" To: "Hiroshi Inoue" Cc: References: <008901c36b8b$52ba19a0$3714a8c0@moya> <3F4C8436.250E5674@tpf.co.jp> Subject: Re: PostgreSQL ODBC: Bug with Insert when using parameters arrays ?? Date: Thu, 28 Aug 2003 09:48:43 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/67 X-Sequence-Number: 3187 Hi Hiroshi ! ----- Original Message ----- From: "Hiroshi Inoue" To: "Jol Valentine" Cc: Sent: Wednesday, August 27, 2003 8:13 PM Subject: Re: [ODBC] PostgreSQL ODBC: Bug with Insert when using parameters arrays ?? > Jol Valentine wrote: > > > > Hi, > > > > as a follow up to my previous note I have since download the PostgreSQL ODBC > > source code > > and compiled it under Visual Studio .NET 2003. It's all up and running OK. > > > > It looks like the problem is in PGAPI_Execute(...) in execute.c. > > > > In the for loop at line 558 > > for (i = 0; i < apdopts->allocated; i++) > > the data_at_exec parameters are being counted, but this is only looping > > through the columns, > > I'm taking account of current_row in the code. yes, but I'm only taking about data_at_exec or 'late' bound parameters. (which wouldn't have been clear from my comments above, but my previous emails were rejected.) The processing for these is not correct, only the first row of data is being processed. > > > the fact that there are multiple rows of data is not being taken account of. > > In my case apdopts->paramset_size is 3. > > Do you have concrete examples ? Yes I have some LONGVARCHAR data that is not being inserted correctly. I tried to send all the details (twice) including log files etc to pgsql-odbc@postgresql.org but it was rejected as being too large. Do you want me to send you these ? In any case I've fixed the problem, I'm just currently doing some testing. regards, Jol. > > regards, > Hiroshi Inoue > http://www.geocities.jp/inocchichichi/psqlodbc/ >