Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove false warning log #1843

Merged
merged 2 commits into from
Aug 25, 2023
Merged

fix: Remove false warning log #1843

merged 2 commits into from
Aug 25, 2023

Conversation

joc-a
Copy link
Collaborator

@joc-a joc-a commented Aug 24, 2023

This warning was first eliminated here. Then it was accidentally introduced again here because of the change made to the getOrNull function.

  • To fix this, I moved the logic in the get function to a new function, getInternal, that has a Boolean parameter checkNullability which it uses to decide to whether or not to check for the column's nullability and log a warning.

  • A new test dependency was added (io.github.hakky54:logcaptor) to assert that no logging took place.

@joc-a joc-a marked this pull request as ready for review August 24, 2023 11:45
@joc-a joc-a requested review from bog-walk, e5l and Tapac August 24, 2023 11:55
Copy link
Member

@e5l e5l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@joc-a joc-a force-pushed the joc/remove-false-warning-log branch from b7b75bc to eeda917 Compare August 25, 2023 12:01
-This warning was first eliminated here https://github.com/JetBrains/Exposed/pull/541/files. Then it was accidentally introduced again here 77f11a9 because of the change made to the getOrNull function.
-A new dependency was added (io.github.hakky54:logcaptor) to assert that no logging took place
@joc-a joc-a force-pushed the joc/remove-false-warning-log branch from 2d6db81 to 499173b Compare August 25, 2023 12:17
@joc-a joc-a merged commit 2c1a437 into main Aug 25, 2023
3 checks passed
@joc-a joc-a deleted the joc/remove-false-warning-log branch August 25, 2023 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning log "Column is marked as not null, has default db value, but returns null" on left join
3 participants