question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

null value is not considered, when a default value is generated in a nullable column

See original GitHub issue

I set lastMaintenance to null image

Here is my table definition. See that nullable values are allowed for the column last_maintenance. image

This is the result I got when the row was inserted image

EntityDml -> findInsertColumns#216. null values seem to be skipped, but in my case it would be valid to insert null. image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vincentlauvlwjcommented, Apr 24, 2021

Thank you. Will fix it in the future.

0reactions
wtksanacommented, Dec 17, 2021

@vincentlauvlwj 我旧的项目决定还是不升级了 新项目用新的版本开发 bug是无法避免的 ktorm给我的开发带来了极大的便利 感谢

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found