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

Unexpected result executing: SELECT COUNT(*) as c FROM commits limit 10; #112

Closed
ajnavarro opened this issue Feb 10, 2017 · 0 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@ajnavarro
Copy link
Contributor

Executing the query without alias, the result is as expected:

!> SELECT COUNT(*) FROM commits;

--> Executing query: SELECT COUNT(*) FROM commits;

+----------+
| COUNT(*) |
+----------+
|    48279 |
+----------+

But if we add an alias:

!> SELECT COUNT(*) as c FROM commits limit 10;

--> Executing query: SELECT COUNT(*) as c FROM commits limit 10;

+------------------------------------------+
|                    C                     |
+------------------------------------------+
| 6fa4b393c01a84c9adf2e2435fba6de13227eabf |
| f6fe463165824f26efe6aaabaa352032f6f93886 |
| 2ba79c4f8ad74b87ef44dd692d46706adbb9e8d0 |
| d07b93103dc7e8bcba010541efa5b0a2394ea6a7 |
| 054bc50dde1a194bbd9a69a72004c2e18b19852f |
| deaab788af9a4f1ed8ed8193b20e3cffb1555b20 |
| 2cfc70f0de7c8902791d3b23a92d6462b9e11d72 |
| fc8af32b8ddaeddf12542cc233631b3dccf4724a |
| 27d5987585e08376915ca02ebb53cfc0a40a39f0 |
| bc01db39ce5bf4d227bc5ef6d9b95bb5f5390f5c |
+------------------------------------------+
@ajnavarro ajnavarro added the bug Something isn't working label Feb 10, 2017
smola added a commit to smola/gitql that referenced this issue Feb 10, 2017
@smola smola self-assigned this Feb 10, 2017
@smola smola closed this as completed in 2a9c67d Feb 10, 2017
@smola smola modified the milestones: v1.0.0, v0.5.0 Feb 10, 2017
dpordomingo pushed a commit to dpordomingo/gitbase that referenced this issue Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants