Bug 75354 - EDITING: Base TABLE Editor not updating table FIELDS properly when both FIELD NAME and FILED TYPE are changed
Summary: EDITING: Base TABLE Editor not updating table FIELDS properly when both FIELD...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Database (show other bugs)
Version: Inherited From OOo
Hardware: x86 (IA32) Linux (All)
: medium major
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-22 06:43 UTC by Kevin Suo
Modified: 2015-01-03 17:38 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Kevin Suo 2014-02-22 06:43:50 UTC
In LibreOffice Base, the Table Editor is not updating table FIELDS properly when both FIELD NAME and FILED TYPE are changed.

Steps to reproduce:
1. New base TABLE in design mode, Fields: 
ID (Integer, AutoVaule, Primary Key);
AGE (Tiny Interger).
Save.

2. OPEN the TABLE and insert a row of data:
AGE: 28
Save.

3. EDIT the TABLE fields:
change "AGE (Tiny Integer)" to "DATE_OF_BIRTH (Date)", save.
A warning window shows up.

4. When choose NO, the FIELD NAME is back to "AGE" and the save button is greyed-out. Close the EDIT window.

5. OPEN the above TABLE to see the columns and rows. You will see the 2nd column is "DATE_OF_BIRTH" rather than "AGE". However, in TABLE design mode (EDIT), the 2nd column is still "AGE". At this stage nothing can be done to correct the difference in EDIT mode.

6. Quit EDIT mode, go to VIEW and hit Refesh Tables, the field become "DATE_OF_BIRTH" in EDIT mode.

Expected:
Table editor accept the changes of FIELD NAME and FIELD TYPE, and refresh to shows the correct FIELD NAME and FIELD TYPE in step 5.

Ubuntu 13.10 x86, LibreOffice 4.1.5.3 and 4.2.1.1.
Comment 1 Kevin Suo 2014-02-22 06:45:18 UTC
Adding my earlier report Bug 75129 as "see also".
Comment 2 robert 2014-02-22 08:05:21 UTC
I could confirm the bug.
I created a table and saved it and put some values in the fields.
Then I opened it again for changed the name and the fieldtype for one field from "Age" and "TINYINT" to "Birthdate" and "DATE".
A warning appears:
The column "Birthadte" could not be changed ...
Notice: The name of the column has been "Age". "Birthdate" should be the new name. I could see in the background: The name has been changed to "Birthdate"
If I press "No" for changing the fieldtype to "DATE". The fieldtype isn't changed but the fieldname is also shon as if it isn't changed. There I could see "Age".
When I open the table for input I could see the renamend field "Birthdate". I have to go to View → Refresh Tables. After this action the table-editor noticed the new name "Birthdate".

This happens with all LO-Versions, beginning with LO 3.3.0Beta1. So I set the version to "Inherited from OOo".
Comment 3 Alex Thurgood 2015-01-03 17:38:34 UTC
Adding self to CC if not already on


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.