Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 3FE489FA4DB for ; Thu, 16 Aug 2007 08:35:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71567-02 for ; Thu, 16 Aug 2007 08:35:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 186A59FA49B for ; Thu, 16 Aug 2007 08:35:20 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 71E0E3144D; Thu, 16 Aug 2007 13:35:18 +0200 (MET DST) From: Lothar Behrens X-Newsgroups: pgsql.interfaces.odbc Subject: Re: UPDATE with data at exec and CURRENT OF question Date: Thu, 16 Aug 2007 04:35:15 -0700 Organization: http://groups.google.com Lines: 66 Message-ID: <1187264115.857459.54640@a39g2000hsc.googlegroups.com> References: <1186593244.173056.317630@q75g2000hsh.googlegroups.com> <11710.1186623677@sss.pgh.pa.us> <1186645291.049698.75020@g4g2000hsf.googlegroups.com> <048b01c7da61$4eaf6970$c601a8c0@HP22720319231> <1186660243.064117.146140@57g2000hsv.googlegroups.com> <015501c7da90$2f963f30$c601a8c0@HP22720319231> <1186679929.108621.138200@l70g2000hse.googlegroups.com> <050601c7daeb$405c50b0$c601a8c0@HP22720319231> <1186762731.074310.18760@x40g2000prg.googlegroups.com> <054901c7dfdd$c2917eb0$c601a8c0@HP22720319231> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Complaints-To: groups-abuse@google.com In-Reply-To: <054901c7dfdd$c2917eb0$c601a8c0@HP22720319231> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/312.8.1 (KHTML, like Gecko) Safari/312.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 jedi.behrens.de:3128 (squid/2.5.STABLE5) Complaints-To: groups-abuse@google.com Injection-Info: a39g2000hsc.googlegroups.com; posting-host=87.180.0.148; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200708/40 X-Sequence-Number: 9157 "Hiroshi Saito" schrieb: > Hi. > > ----- Original Message ----- > From: > > > > > "Hiroshi Saito" schrieb: > >> Hi. > >> > >> Ah thanks, It is the environment which can reproduce me. > >> Then, I am beginning to make a test code. There is likely to be a problem > >> of some except for SQL_FETCH_NEXT.... > > > > I have created a small test application only with plain ODBC stuff. I > > could reproduce > > my problem also on Windows with MS SQL Server 2000 ! > > > > You could grab the code here: > > > > http://lbdmf.cvs.sourceforge.net/lbdmf/CPP/RegressionTests/Database/Plain-ODBC-Test-Blob/test.cpp?revision=1.4&view=markup > > > > The relevant function is testBlobUpdate. > > > > On PostgreSQL I did not yet have tested on actual drivers, but when > > the MS SQL driver behaves similar, I suppose still an error in my > > code. > > > > Regards, Lothar > > Uga...Sorry, SQL_CURSOR_KEYSET_DRIVEN cannot be supported yet.:-( > Although I tried it as remembered, it is very difficult correction.... > As for the present version, SQL_CURSOR_FORWARD_ONLY and > SQL_CURSOR_STATIC are supported. > To be sure, it needs to exist as TODO.! > I have solved it by binding the binary column as usual. Then I have set the value of the column to an unique value - maybe cursorname - and have updated the database with that value set. Then I was able to use a different query (prepared) with a simple where clause and this was successfull. So this may be a solution for the TODO ? I have figured out some problems doing this on MS SQL but this another issue and propably only a cast for the where clause because they do strikter type checking. Regards, Lothar > Regards, > Hiroshi Saito > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate