check driver.Valuer response, and skip the column if nil #1167
No reviewers
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1167
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "koron/valuer-update-by-nil-always"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem:
Some sort of column are updated by nil always, when type for the column implements
driver.Valuer
interface and it'sValue()
method returnnil
. It should checkrequiredField
.Solution:
Check the response value of
driver.Valuer.Value()
, if it isnil
and notrequiredField
, skip the column.Codecov Report
66.96% <100%> (+0.08%)
64.61% <0%> (-1.54%)
Continue to review full report at Codecov.
Codecov Report
66.96% <100%> (+0.08%)
64.61% <0%> (-1.54%)
Continue to review full report at Codecov.
We needs some tests.