[MDEV-31662] plugin ha_connect, file_type=DBF DELETE fails Created: 2023-07-11 Updated: 2023-07-13 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert, Storage Engine - Connect |
| Affects Version/s: | 10.4.30, 11.0, 10.11.4 |
| Fix Version/s: | 10.4, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Anel Husakovic |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 11 |
||
| Issue Links: |
|
||||||||
| Description |
|
@@version: 11.0.2-MariaDB like There's a problem still in the deletes aren't affecting the file format correctly (though SQL seems to cope).
offset 0146 is different. The record isn't deleted, its still there. The Number of records in the header isn't updated. libreoffice thinks the file is now corrupted (though does a decent recovery job). |
| Comments |
| Comment by Daniel Black [ 2023-07-11 ] | |||||||||||||||||
|
DUNAZOLTAN, how important is the DELETE use case to you? Just wondering how to prioritise it. | |||||||||||||||||
| Comment by Mr. Zoltan Duna [ 2023-07-12 ] | |||||||||||||||||
|
DELETE use case is not important to me. I mainly use SELECT and INSERT statements. | |||||||||||||||||
| Comment by Daniel Black [ 2023-07-12 ] | |||||||||||||||||
|
As far as I can see UPDATES behave correctly. They overwrite the fields of the table and it doesn't need to be shrunk or the table header updated with a change in rows. Table fields are also of a fixed size. So DELETEs will be fixed eventually. If anyone is currently affected by the poor dbf format implementation of a DELETE please comment and watch this issue and we'll prioritize it more. | |||||||||||||||||
| Comment by Daniel Black [ 2023-07-13 ] | |||||||||||||||||
|
notably but not critical is that UPDATE writes to file, two rows instead of 1, its just the second is same as it was.
|