Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FLOCK() causes duplicate primary keys.
Message
From
26/08/2005 13:16:41
 
 
To
26/08/2005 12:37:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2003
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01043971
Message ID:
01044374
Views:
17
>>
>> && put the flock() before the locate
>> && or
>> go (recno()) && get latest data from disk
>
>OK, I moved FLOCK() before locate.
>Unfortunately, I have no idea how this can helo in my case: there is always key record in keys table.
>No records are added or deleted from keys table.
>duplicate keys occur when many users are using the same keys table record.

I'm not 100% sure that flock() rereads the record from disk.
It does not harm to put the flock() before the locate
Maybe it will help, maybe not
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform