Breaking out of RecordLock...
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Feb 18 10:50:19 CST 2004
on 2/18/04 10:22 AM, Robert Brenstein at rjb at rz.uni-potsdam.de wrote:
>> If I execute a SQLSelect() to get a cursor, then a Cursor_SetField() to
>> set the contents of a field, then a Cursor_UpdateRecord() to update the
>> database, but then forget to do a Cursor_Remove(), the field in the
>> table has still been updated, right? I mean *if* there was a way to
>> forcibly remove a locked cursor, and I forced this cursor to be removed,
>> the data I'd posted to the table would still be there, right?
>>
>> Ken Ray
>> Sons of Thunder Software
>> Email: kray at sonsothunder.com
>> Web Site: http://www.sonsothunder.com/
>
> The way I understand what you describe will indeed leave a cursor
> open until the program owning that cursor quits. But this should
> happen only in a local mode. In server mode, the server should close
> cursors when client disconnects AFAIK. I believe that this is what
> Ruslan means "cannot be". If this does happen, Ruslan has to go bug
> hunting.
Disconnect of course kill cursors of client.
But Ken say users not disconnect but just move to other tables.
> The way I deal with that is that as a rule, I create and remove
> cursors within the same handler. It makes it easier to see whether
> all calls are there and I can use a scavenger script (which lists all
> Valentina calls per handler in each object) and quickly inspect if
> anything is amiss. Further, use SQLSelectRecords if you are only
> retrieving data.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina
mailing list