null value is not considered, when a default value is generated in a nullable column
See original GitHub issueI set lastMaintenance
to null
Here is my table definition. See that nullable values are allowed for the column last_maintenance
.
This is the result I got when the row was inserted
EntityDml
-> findInsertColumns#216
. null
values seem to be skipped, but in my case it would be valid to insert null.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
sql - Change a Nullable column to NOT NULL with Default Value
I came across an old table today with a datetime column called 'Created' which allows nulls. Now, I ...
Read more >Problems with adding NOT NULL columns or making nullable ...
Listing 2: Specifying a default when adding a NOT NULL column. Put simply, if a column is being added, and NULL values aren't...
Read more >postgresql - Is DEFAULT NULL and 'nullable value without ...
No. It's not completely the same. NULL is just the default default (sic!) of data types ...
Read more >How Default Value and Nullable Column Works? - SQL Authority
The Simple Answer If the column is nullable then it will create the column with a NULL value instead of the default value,...
Read more >SA0122 : Use ISNULL(Column,Default value) on nullable ...
If the data type is null in the table or code, then when you do comparisons or expressions then make sure to wrap...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you. Will fix it in the future.
@vincentlauvlwj 我旧的项目决定还是不升级了 新项目用新的版本开发 bug是无法避免的 ktorm给我的开发带来了极大的便利 感谢