-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
column: fix zero value for binary type #6213
Conversation
Zero value for BINARY type should be byte slice with length.
/run-all-tests |
LGTM |
} else { | ||
d.SetString("") | ||
} | ||
case mysql.TypeVarString, mysql.TypeVarchar: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we consider TypeVarString
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, VarString
is not fixed length type, does not padding to the length.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Zero value for BINARY type should be byte slice with length.