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 58C0CD1B8A3 for ; Wed, 27 Aug 2003 07:12:40 -0300 (ADT) 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 59062-06 for ; Wed, 27 Aug 2003 07:12:32 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 55F4FD1B8A5 for ; Wed, 27 Aug 2003 07:12:28 -0300 (ADT) Received: (qmail 5360 invoked from network); 27 Aug 2003 10:12:30 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 27 Aug 2003 10:12:30 -0000 Received: from tpf.co.jp ([126.0.1.68]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id TAA06286; Wed, 27 Aug 2003 19:12:23 +0900 (JST) Message-ID: <3F4C8436.250E5674@tpf.co.jp> Date: Wed, 27 Aug 2003 19:13:10 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Jol Valentine Cc: pgsql-odbc@postgresql.org Subject: Re: PostgreSQL ODBC: Bug with Insert when using parameters arrays References: <008901c36b8b$52ba19a0$3714a8c0@moya> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/65 X-Sequence-Number: 3185 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. > 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 ? regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/