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

Comments

@antoinegomez
Copy link

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
Copy link
Member

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

JakobJoonas pushed a commit to JakobJoonas/knex that referenced this issue Sep 23, 2022
Transaction: add notes about trx.rollback()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants