Olaf Doschke
Programmer
This is a minor problem, so I don't need a solution.
If you work with SET DELETED OFF you can eg UPDATE/REPLACE or edit deleted rows in a browse, but neither the table rule, field rules nor the update trigger run.
If you recall a deleted record the field rules, table rule and insert trigger runs.
These two facts mean recalling a record can be hindered, if a record is updated against any rule while being in its deleted state, ie you delete a row, modify it against rules and then a recall triggers rule errors, before the insert trigger runs and finally allows the row to be undeleted again.
It's obviously no big use case to work on deleted rows, also buffering can be used to overcome this. That's what's making it a minor problem only. Most probably this is by design, as typically you don't want rules checked for deleted data, also triggers typically used for referential integrity checks should never error on deleted rows.
The obvious question: Is there anything, which would get triggered for deleted rows? I would of course be able to monitor file changes even outside of Foxpro with very low level file system hooks, since the changes in deleted rows are of course written to disc.
Could we perhaps somehow hook into the automatic locks done on DBF files during writes?
Bye, Olaf.
If you work with SET DELETED OFF you can eg UPDATE/REPLACE or edit deleted rows in a browse, but neither the table rule, field rules nor the update trigger run.
If you recall a deleted record the field rules, table rule and insert trigger runs.
These two facts mean recalling a record can be hindered, if a record is updated against any rule while being in its deleted state, ie you delete a row, modify it against rules and then a recall triggers rule errors, before the insert trigger runs and finally allows the row to be undeleted again.
It's obviously no big use case to work on deleted rows, also buffering can be used to overcome this. That's what's making it a minor problem only. Most probably this is by design, as typically you don't want rules checked for deleted data, also triggers typically used for referential integrity checks should never error on deleted rows.
The obvious question: Is there anything, which would get triggered for deleted rows? I would of course be able to monitor file changes even outside of Foxpro with very low level file system hooks, since the changes in deleted rows are of course written to disc.
Could we perhaps somehow hook into the automatic locks done on DBF files during writes?
Bye, Olaf.