Bug 394914 - Table default values not displayed
Summary: Table default values not displayed
Status: ASSIGNED
Alias: None
Product: KEXI
Classification: Applications
Component: Tables (show other bugs)
Version: 3.1.0
Platform: Other Linux
: HI normal
Target Milestone: 3.2.1
Assignee: Jarosław Staniek
URL:
Keywords:
Depends on:
Blocks: 379306
  Show dependency treegraph
 
Reported: 2018-06-01 06:56 UTC by Adam Pigg
Modified: 2019-02-18 19:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.