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

count() not working (using .toString()) #98

Closed
antoinegomez opened this issue Oct 30, 2013 · 1 comment
Closed

count() not working (using .toString()) #98

antoinegomez opened this issue Oct 30, 2013 · 1 comment
Labels
bug

Comments

@antoinegomez
Copy link

@antoinegomez antoinegomez commented Oct 30, 2013

Hello,

Tried to use .count() but when I call .toString() function to debug the query it's not well translated.

Here is the snippet used to test it:

var Knex  = require('knex');
    Knex.knex = Knex.initialize({
  client: 'mysql'
});
console.log(Knex.knex('users').count('id').toString());

Output:

select * from users

@tgriesser tgriesser closed this in 48096b1 Oct 31, 2013
@tgriesser
Copy link
Member

@tgriesser tgriesser commented Oct 31, 2013

Thanks for the ticket @antoinegomez, should be fixed on the latest release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants