Bug 394914

Summary: Table default values not displayed
Product: [Applications] KEXI Reporter: Adam Pigg <adam>
Component: TablesAssignee: Jarosław Staniek <staniek>
Status: ASSIGNED ---    
Severity: normal CC: adam, inksi, staniek
Priority: HI    
Version: 3.1.0   
Target Milestone: 3.2.1   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 379306    

Description Adam Pigg 2018-06-01 06:56:21 UTC
if the value of a column is the same as the columns default value, eg, 0, it is not displayed in the table data view.
Comment 1 Jarosław Staniek 2018-06-10 22:10:54 UTC
Based on my tests we have problems with default values equal to 0.  kexi_fields.f_default is NULL by default but the Default Value property of Table Designer is displayed as 0.
Comment 2 Jarosław Staniek 2018-06-13 08:32:20 UTC
For the record, programmer's info:
Default value is problematic property in the Table Designer since it is of mixed type that follows given field's type. I am trying to switch to string now and only convert to the target type when user changes are applied to the design.
Comment 3 Jarosław Staniek 2018-07-03 23:09:36 UTC
The fix will include improvements for entering values: null will be possible to enter.
Comment 4 Jarosław Staniek 2018-09-10 09:04:52 UTC
Adam, based on your idea extra "Set null" button can be added to KProperty. This is functional change so moving the milestone to 3.2.
Comment 5 Jarosław Staniek 2019-01-11 16:44:42 UTC
Setting importance to High for 3.2.0.