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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Owner

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