Apache OpenOffice (AOO) Bugzilla – Issue 107461
Changing the case of a table column loses the column data without any hint
Last modified: 2017-05-20 10:24:08 UTC
If i rename an coloumn in the table editor like "dtText" in "dttext", and saved the table by click on the "save button". The coloumn will be deleted without any hint that data will be lost. After opening the Table, the new coloumn name exist, but the datasets where lost. It would be nice, if renaming of a coloumn would work without deleting and creating a new coloumn. Otherwise an information to the user is helpfull. I checked this with OOO320m7 on WinXP and 3.1.1 and in both it is the same. -Open attached database -double click on "Table1" => notice that "dtText" is filled -edit "Table1" -rename "dtText" in "dttext" -push the save Button - close and reopen "Table1" =>In the example you can see, that the "dtLook" coloumn now is at the second position.
Created attachment 66503 [details] Example
I can confirm the bug for DEV300 m66 on WinXP. The problem has been told already in issue 102096, which was closed as worksforme. I think it is a severe error, because the user notice the data loss earliest when he has closed the edit window and then there is no undo possible, because the changes are written immediately to the database.
There had been a similar bug issue 14870 which was fixed for OOo1.1. But I see the bug in OO2.4.3 too.
The direct SQL command ALTER TABLE "Table1" ALTER COLUMN "dtText" RENAME TO "dttext" works as expected and alters the field name without data loss.
targeting, assigning. Seems to me this only happens if you change the case of the column.
Fixed in cws dba33e.
Please verify. Thanks.
verified in cws dba33e. Now the field name is changed without data lost.