INT or Date fields with a NULL value are displayed as 0
When I iter trough my Gda.DataModel
and set the value in a Gtk.ListStore
cell, if the value is NULL
I get a warning as unable to convert GdaNull to <the actual Type of the Column>
.
Also, the displayed value returns like it was set as a default for that type of column.
Screenshot of example from a simple MySQL select:
And the same select on my GUI application:
You can see how the created_at
and updated_at
columns have a NULL
value, but in the GUI is displayed as its default column format.
This is the location on my source code where I'm setting the value from the Gda.DataModel
https://github.com/Alecaddd/sequeler/blob/master/src/Partials/TreeBuilder.vala#L108