Skip to content

Commit

Permalink
*: truncate data (pingcap#2002)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala authored and coocood committed Nov 15, 2016
1 parent f4ae986 commit d0cb5d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func runTestLoadData(c *C) {
c.Assert(err, IsNil)
}()
_, err = fp.WriteString(`
xxx row1_col1 - row1_col2 1
xxx row1_col1 - row1_col2 1abc
xxx row2_col1 - row2_col2
xxxy row3_col1 - row3_col2
xxx row4_col1 - 900
Expand Down Expand Up @@ -286,7 +286,7 @@ xxx row5_col1 - row5_col3`)
dbt.Check(rows.Next(), IsTrue, Commentf("unexpected data"))
rows.Scan(&a, &b, &cc)
dbt.Check(a, DeepEquals, "row1_col1")
dbt.Check(b, DeepEquals, "row1_col2\t1")
dbt.Check(b, DeepEquals, "row1_col2\t1abc")
dbt.Check(cc, DeepEquals, 6)
dbt.Check(rows.Next(), IsTrue, Commentf("unexpected data"))
rows.Scan(&a, &b, &cc)
Expand Down
1 change: 0 additions & 1 deletion table/column.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ func CastValues(ctx context.Context, rec []types.Datum, cols []*Column, ignoreEr
if err != nil {
if ignoreErr {
log.Warnf("cast values failed:%v", err)
continue
} else {
return errors.Trace(err)
}
Expand Down

0 comments on commit d0cb5d9

Please sign in to comment.