Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 6366B2E0040 for ; Tue, 10 Jun 2008 22:04:08 -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 55678-06 for ; Tue, 10 Jun 2008 22:03:55 -0300 (ADT) X-Greylist: delayed 00:06:38.830379 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 9D22F2E002E for ; Tue, 10 Jun 2008 22:03:58 -0300 (ADT) Received: (qmail 30466 invoked from network); 11 Jun 2008 09:57:16 +0900 Received: from unknown (HELO ?127.0.0.1?) (100.0.32.228) by sd2.tpf-fw-c.co.jp with SMTP; 11 Jun 2008 09:57:16 +0900 Message-ID: <484F22E4.1030507@tpf.co.jp> Date: Wed, 11 Jun 2008 09:57:08 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: alepaes - aldeia digital CC: pgsql-odbc@postgresql.org Subject: Re: Re: " for read only" clause appended for safety when UseDeclareFetch=1 breaks some sql statements with trailing semicolons References: <484E93A7.7000708@aldeiadigital.com.br> <484EBA91.1010108@aldeiadigital.com.br> In-Reply-To: <484EBA91.1010108@aldeiadigital.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.43 tagged_above=0 required=5 tests=AWL=-0.695, DNS_FROM_RFC_BOGUSMX=2.125 X-Spam-Level: * X-Archive-Number: 200806/9 X-Sequence-Number: 9539 alepaes - aldeia digital wrote: > Sorry, > > I mean: "PGODBC 8.03.0200 have the same problem" > > > alepaes - aldeia digital wrote: >> Hi, >> >> Postgresql 8.2.3 have the same problem: >> >> <192.168.1.10>ERROR: syntax error at or near "read" at character 487 >> <192.168.1.10>STATEMENT: declare "SQL_CUR01B5BDE8" cursor for SELECT >> ct12emp04, ct12numlot, ct12numlan, ct12dtlanc, ct12docume, ct12empcc1, >> ct12empcc2, ct12empcc3, ct12emptr1, ct12emptr2, ct12emptr3, >> ct12dtdig, ct12tradu1, ct12ccust1, ct12tradu2, ct12ccust2, >> ct12tradu3, ct12ccust3, ct12valor, ct12histo1, ct12histo2, >> ct12histo3, ct12histo4, ct12histo5, ct12histo6, ct12renume, >> ct12origem FROM CT12T WHERE ct12emp04 = '500' AND ct12numlot = >> '20080532' AND ct12numlan = '52' FOR UPDATE OF CT12T for read >> only;fetch 100 in "SQL_CUR01B5BDE8" Could you try the driver testing for 8.3.0201 at http://www.geocities.jp/inocchichichi/psqlodbc/index.html ? regards, Hiroshi Inoue