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 issue #5054 #5064

Merged
merged 2 commits into from
Dec 10, 2015
Merged

fix issue #5054 #5064

merged 2 commits into from
Dec 10, 2015

Conversation

mengjinglei
Copy link
Contributor

fix issue #5054

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

@@ -808,6 +808,11 @@ func TestServer_Query_Math(t *testing.T) {
command: `SELECT max(value) + min(value) from db.rp.integer`,
exp: fmt.Sprintf(`{"results":[{"series":[{"name":"integer","columns":["time",""],"values":[["1970-01-01T00:00:00Z",84]]}]}]}`),
},
&Query{
name: "SELECT square of enclosed integer value",
command: `SELECT ((value) * (value)) from db.rp.integer`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have you wrapped value individual in parenthesis? Just to fully test the code? If so, I'd prefer the following tests, so it's clearer:

SELECT ((value) * (value))
SELECT (value * value)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK,add a test case according to the comment

@otoolep
Copy link
Contributor

otoolep commented Dec 10, 2015

+1, thanks @mengjinglei

@corylanou @dgnorton ?

@corylanou
Copy link
Contributor

+1

otoolep added a commit that referenced this pull request Dec 10, 2015
@otoolep otoolep merged commit def5e06 into influxdata:master Dec 10, 2015
@jwilder jwilder added this to the 0.10.0 milestone Feb 1, 2016
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.

4 participants