Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating CursorAdapter w/Free Tables
Message
From
16/10/2006 01:28:48
 
 
To
15/10/2006 23:08:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01161323
Message ID:
01162160
Views:
31
>>Right, but why the DEFAULT is an assign value ?
>>
>
>Because, based on the content of the record, the field was assigned a value. I am sure there are many scenarios when someone would want DEFAULT value to be sent to the remote source. One of them was discussed on this thread.
>

this is certainly true, but the contrary is true too.
This involves that the scenery where default has state = "3" (mines choice)
it is simple to be implemented ( CA call BeforeCursorUpdate ... ),
vice versa, that actual (your choice) default state = "4" it becomes very complicated.

>
>>another issue is this,
>>because DEFAULT is done as an update operation,
>>OLDVAL and CURVAL return NULL for a not nullable field,
>
>Interesting conclusion. I can assure you that behavior of CURVAL/OLDVAL has nothing to do with how DEFAULT behaves. No relation, what soever. CURVAL/OLDVAL is not defined for a new record, that is why the result is NULL. Also, these functions are not designed to judge about field's type/nullability based on their result.

I agree, NULL is ambiguous in this case
Previous
Reply
Map
View

Click here to load this message in the networking platform