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

util/types: ignore string truncate error. #2685

Merged
merged 2 commits into from
Feb 20, 2017
Merged

util/types: ignore string truncate error. #2685

merged 2 commits into from
Feb 20, 2017

Conversation

hanfei1991
Copy link
Member

fix #2653
create table t (a varchar(3), index (a));
insert t values ("aaaa") should report error.
select a < "aaaa" from t; shoud not report error.
@shenli @coocood @zimulala PTAL

@@ -690,6 +690,11 @@ func (s *testSuite) TestIndexScan(c *C) {
tk.MustExec("CREATE INDEX idx_tab1_1 on tab1 (b, a)")
result = tk.MustQuery("SELECT pk FROM tab1 WHERE b > 1")
result.Check(testkit.Rows("3", "4"))

tk.MustExec("drop table if exists t")
tk.MustExec("CREATE TABLE t (a varchar(3), index(a))")
Copy link
Member

@coocood coocood Feb 20, 2017

Choose a reason for hiding this comment

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

insert t values ("aaa"), ("aab");

@zimulala
Copy link
Contributor

LGTM

Copy link
Member

@coocood coocood left a comment

Choose a reason for hiding this comment

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

LGTM

@coocood coocood merged commit 846b267 into master Feb 20, 2017
@coocood coocood deleted the hanfei/bug branch February 20, 2017 11:51
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.

Should not return Data Too Long error when build range.
3 participants