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 the lower bound when converting numbers less than 0 to unsigned integers #8544

Merged
merged 24 commits into from
Jan 10, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove update
  • Loading branch information
exialin committed Jan 9, 2019
commit 60f2e3bcf9614b4a482c1c110f3389f4ace4e5f8
2 changes: 1 addition & 1 deletion sessionctx/stmtctx/stmtctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func (sc *StatementContext) GetExecDetails() execdetails.ExecDetails {
func (sc *StatementContext) ShouldClipToZero() bool {
// TODO: Currently altering column of integer to unsigned integer is not supported.
// If it is supported one day, that case should be added here.
return sc.InInsertStmt || sc.InUpdateStmt || sc.InLoadDataStmt
return sc.InInsertStmt || sc.InLoadDataStmt
}

// ShouldIgnoreError indicates whether we should ignore the error when type conversion overflows,
Expand Down