Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id E9BBC2E0043 for ; Wed, 11 Jun 2008 15:49:38 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11057-09 for ; Wed, 11 Jun 2008 15:49:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by developer.postgresql.org (Postfix) with SMTP id E53C72E0040 for ; Wed, 11 Jun 2008 15:49:34 -0300 (ADT) Received: (qmail 10536 invoked from network); 12 Jun 2008 03:49:32 +0900 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 12 Jun 2008 03:49:32 +0900 Received: from unknown (HELO ?192.168.11.3?) (219.61.40.6) by sd.tpf.co.jp with SMTP; 12 Jun 2008 03:49:32 +0900 Message-ID: <48501E31.5030107@tpf.co.jp> Date: Thu, 12 Jun 2008 03:49:21 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Richard Broersma CC: pgsql-odbc@postgresql.org Subject: Re: ODBC escape convert error References: <396486430806111048u7572d1f7o4851e6a79556ada0@mail.gmail.com> In-Reply-To: <396486430806111048u7572d1f7o4851e6a79556ada0@mail.gmail.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.744 tagged_above=0 required=5 tests=AWL=-1.381, DNS_FROM_RFC_BOGUSMX=2.125 X-Spam-Level: X-Archive-Number: 200806/18 X-Sequence-Number: 9548 Richard Broersma wrote: > I've attached a log file with the code for a prepared insert command. > However, when it is executed, I am getting the error: > > ODBC escape convert error. > > It looks like the query never makes it to the sever becuase I don't > see any statement logged for it. Does anyone have any ideas? You may have to replace '{' (ODBC escape) by '(' in the line. .CommandText = .CommandText & " WHERE { T.instrumentcode, T.instrumentsuff, T.area, T.loopnbr ) IS NULL; regards, Hiroshi Inoue