Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Buffering Problem
Message
From
21/10/2006 18:06:23
 
 
To
19/10/2006 17:23:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01162983
Message ID:
01163823
Views:
10
>Hi Naomi,
> Ok, the problem is solved! This is very strange and I think it points to a bug in VFP.
>
> I issue an update:
> UPDATE MyTable SET MyColumn = MyValue WHERE MyColumn1 = MyValue
>
> If MyColumn1 is not a primary key, then the bad behavior occurs
> BUT
> If MyColumn1 is a primary key, then the bad behavior does not occur
>
> The "Bad Behavior" is: executing the table validation rule and, upon exiting the table validation rule, committing the changes.
>
> In my code, I was able to change "MyColumn1" to a primary key and that solved the problem.
>
> I believe this is a bug. I will report this.
> Thanks very much for your help!!
>
> Best regards, Chaim

Hi Chaim,

It is expected that SQL-UPDATE command may change the current record in the target table. Especially when there is no index to optimize WHERE condition because it should scan all table.

If you think this doesn't explain the behavior you see, please provide complete repro code that shows the problem.

Thanks,
Aleksey.
Previous
Reply
Map
View

Click here to load this message in the networking platform