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 BCCCBD1B523 for ; Tue, 26 Aug 2003 01:30: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 65247-03 for ; Tue, 26 Aug 2003 01:30:10 -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 A68C7D1B8A8 for ; Tue, 26 Aug 2003 01:30:08 -0300 (ADT) Received: (from mail@localhost) by mx1.espl.com.au (8.11.0/8.11.0) id h7Q4UQo32630 for ; Tue, 26 Aug 2003 14:30:26 +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 smtpdDS1SoP; Tue, 26 Aug 2003 14:30:12 EST Received: from moya (moya [192.168.20.55]) by fs.espl.com.au (8.11.0/8.11.0) with SMTP id h7Q4TnQ10018 for ; Tue, 26 Aug 2003 14:29:50 +1000 Message-ID: <008901c36b8b$52ba19a0$3714a8c0@moya> From: "Jol Valentine" To: Subject: PostgreSQL ODBC: Bug with Insert when using parameters arrays ?? Date: Tue, 26 Aug 2003 14:34:16 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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/55 X-Sequence-Number: 3175 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, the fact that there are multiple rows of data is not being taken account of. In my case apdopts->paramset_size is 3. Looking at the code in more detail it looks like you simply don't support the inserting of multiple "data at execution" parameters per column. Do you know if anyone is working on this at the moment or is it a known deficiency ? Is it worth me taking a look at it ? regards, Jol Valentine.