From: Hiroshi Saito <z-saito@guitar.ocn.ne.jp>
To: Lothar Behrens <lothar.behrens@lollisoft.de>
To: pgsql-odbc@postgresql.org
Subject: Re: UPDATE with data at exec and CURRENT OF question
Date: Thu, 16 Aug 2007 21:22:11 +0900
Message-ID: <021e01c7e000$12b0ffc0$c601a8c0@HP22720319231> (raw)
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>
<1187264115.857459.54640@a39g2000hsc.googlegroups.com>
Hi.
From: "Lothar Behrens" <lothar.behrens@lollisoft.de>
>
> "Hiroshi Saito" schrieb:
>> Hi.
>>
>> ----- Original Message -----
>> From: <lothar.behrens@lollisoft.de>
>>
>> >
>> > "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?re...
>> >
>> > 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.
Oh, Cool, It is great solution. I'm sorry in explanation having been lacking.
Sorry, my explanation is insufficient...SQL_CURSOR_KEYSET_DRIVEN
does not become effective together with DECLARE/FETCH options.
It can be used as the option of UPDATE cursor.
Correctly, it should have made it TODO to use with it.
Anyway, I'm sorry confused the user.
Thanks!
Regards,
Hiroshi Saito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: z-saito@guitar.ocn.ne.jp, lothar.behrens@lollisoft.de
Subject: Re: UPDATE with data at exec and CURRENT OF question
In-Reply-To: <021e01c7e000$12b0ffc0$c601a8c0@HP22720319231>
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> <1187264115.857459.54640@a39g2000hsc.googlegroups.com> <021e01c7e000$12b0ffc0$c601a8c0@HP22720319231>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox