We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DecodeArgs
json.Unmarshal
In Go 1.15 (master branch), TiDB's DDL cannot work correctly and DDL related unit-test all failed.
The root cause is Job.DecodeArgs relies on the wrong behavior of json.Unmarshal, and this bug is fixed in Go 1.15.
Job.DecodeArgs
The docs read:
To unmarshal a JSON array into a slice, Unmarshal resets the slice length to zero and then appends each element to the slice.
This means the value in args doesn't matter, and the value in args will be replaced by an interface{}(nil).
args
interface{}(nil)
parser/model/ddl.go
Lines 284 to 288 in fb51991
See golang/go#39427 for a more detailed discussion.
The text was updated successfully, but these errors were encountered:
parser: cherry-pick #889 to 4.0-itai (#900)
5ef420a
Successfully merging a pull request may close this issue.
Bug Report
In Go 1.15 (master branch), TiDB's DDL cannot work correctly and DDL related unit-test all failed.
The root cause is
Job.DecodeArgs
relies on the wrong behavior ofjson.Unmarshal
, and this bug is fixed in Go 1.15.The docs read:
This means the value in
args
doesn't matter, and the value inargs
will be replaced by aninterface{}(nil)
.parser/model/ddl.go
Lines 284 to 288 in fb51991
See golang/go#39427 for a more detailed discussion.
The text was updated successfully, but these errors were encountered: