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

benchdb: support specify a sql query to run. #2395

Merged
merged 2 commits into from Jan 5, 2017
Merged

Conversation

coocood
Copy link
Member

@coocood coocood commented Jan 5, 2017

No description provided.

func (ut *benchDB) query(spec string) {
strs := strings.Split(spec, ":")
sql := strs[0]
count, _ := strconv.Atoi(strs[1])
Copy link
Contributor

Choose a reason for hiding this comment

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

Why discard this error?

Copy link
Member Author

Choose a reason for hiding this comment

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

The string is manually inputted, we can make sure it's valid int.

@zimulala
Copy link
Contributor

zimulala commented Jan 5, 2017

LGTM

1 similar comment
@tiancaiamao
Copy link
Contributor

LGTM

@coocood coocood merged commit 27c3a37 into master Jan 5, 2017
@coocood coocood deleted the coocood/update-benchdb branch January 5, 2017 05:36
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.

None yet

3 participants