X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 971209FB259 for ; Fri, 11 Aug 2006 12:23:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 83696-03 for ; Fri, 11 Aug 2006 12:22:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (mail.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 6B6AF9FB1DD for ; Fri, 11 Aug 2006 12:22:50 -0300 (ADT) Received: (qmail 13561 invoked from network); 12 Aug 2006 00:22:48 +0900 X-Authentication: inoue was authenticated by dns.tpf.co.jp at 12 Aug 2006 00:22:48 +0900 Received: from unknown (HELO ?192.168.11.3?) (219.61.40.10) by dns.tpf.co.jp with SMTP; 12 Aug 2006 00:22:48 +0900 Message-ID: <44DCA0C7.9000604@tpf.co.jp> Date: Sat, 12 Aug 2006 00:22:47 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Pascal Viandier CC: pgsql-odbc@postgresql.org Subject: Re: RE : RE : Cannot update or delete rows References: <001201c6bd41$4926c7c0$270210ac@windows.accovia.com> In-Reply-To: <001201c6bd41$4926c7c0$270210ac@windows.accovia.com> Content-Type: multipart/mixed; boundary="------------040006010208070905030607" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/41 X-Sequence-Number: 8005 This is a multi-part message in MIME format. --------------040006010208070905030607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Pascal Viandier wrote: > Hi Hiroshi, > > >> Please try the dll at >> http://www.geocities.jp/inocchichichi/psqlodbc/index.html >> ? >> > > I am sorry, I work on Sun Sparc Solaris, not Windows. Oh I see. Please apply the attached patch. regards, Hiroshi Inoue --------------040006010208070905030607 Content-Type: text/plain; name="conv.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="conv.diff" *** ../../psqlodbc-libpq/psqlodbc/convert.c Sun Jul 9 23:40:28 2006 --- ./convert.c Fri Aug 11 13:06:25 2006 *************** *** 2381,2386 **** --- 2381,2387 ---- CVT_APPEND_DATA(qb, qp->statement + qp->from_pos + 5, npos - qp->from_pos - 5); } } + npos -= qp->declare_pos; stmt->load_statement = malloc(npos + 1); memcpy(stmt->load_statement, qb->query_statement + qp->declare_pos, npos); stmt->load_statement[npos] = '\0'; --------------040006010208070905030607--