Trying to understand record locks

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Oct 17 21:38:21 CDT 2003


on 10/17/03 17:10, James Kleinschmidt at jkleins at shentel.net wrote:

Hi James,

> In my testing I get a cursor (theCur) and store it in a global property
> with read/write locks. This is a good cursor
> I then try to get another cursor (theNewCur) with the same data and it
> fails.

> This seems right because that data is locked, right. But now it gets
> confusing.

-----

> If I get the same cursor (theCur) and store it in the global variable
> with no locks and then repeat the exact same select with read/write
> locks, just as I did in the first test, and store it in the same global
> -  theNewCur works fine and I can change the records in theNewCur
> successfully like the locks are not there.

> Am I missing something real obvious here or should I be doing something
> differently?

I do not understand what wonder you.

You have assign second cursor to the same variable.
So first cursor is deleted.

You have now only one cursor with ReadWrite locks
So of course you can change records in this second cursor.

-- 
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