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

*: replace interface{} with Datum in convert. #952

Merged
merged 1 commit into from
Mar 7, 2016

Conversation

coocood
Copy link
Member

@coocood coocood commented Mar 7, 2016

No description provided.

@coocood
Copy link
Member Author

coocood commented Mar 7, 2016

@shenli @zimulala PTAL

@shenli
Copy link
Member

shenli commented Mar 7, 2016

LGTM

@@ -19,6 +19,7 @@ import (
"time"

"github.com/pingcap/check"
"github.com/pingcap/tidb/Godeps/_workspace/src/github.com/juju/errors"
Copy link
Contributor

Choose a reason for hiding this comment

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

"github.com/pingcap/tidb/Godeps/_workspace/src/github.com/juju/errors" -> "github.com/juju/errors" ?

@coocood coocood force-pushed the coocood/datum-convert branch from 5bc5a50 to 6bea1d6 Compare March 7, 2016 05:02
case KindMysqlSet:
dec = mysql.NewDecimalFromFloat(d.GetMysqlSet().ToNumber())
default:
return ret, fmt.Errorf("can't convert %v to decimal", d)
Copy link
Contributor

Choose a reason for hiding this comment

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

return invalidConv(d, target.Tp)?

@coocood coocood force-pushed the coocood/datum-convert branch 2 times, most recently from 13ef1e9 to 388f7c3 Compare March 7, 2016 05:25
@zimulala
Copy link
Contributor

zimulala commented Mar 7, 2016

LGTM

@coocood coocood force-pushed the coocood/datum-convert branch from 388f7c3 to ac12b71 Compare March 7, 2016 06:12
coocood added a commit that referenced this pull request Mar 7, 2016
*: replace interface{} with Datum in convert.
@coocood coocood merged commit 9cd548d into master Mar 7, 2016
@coocood coocood deleted the coocood/datum-convert branch March 7, 2016 06:31
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.

3 participants