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

How to get count(*) value from a SQL request ? #17

Closed
solisoft opened this issue Aug 28, 2015 · 4 comments
Closed

How to get count(*) value from a SQL request ? #17

solisoft opened this issue Aug 28, 2015 · 4 comments

Comments

@solisoft
Copy link

I'm trying to get value from a very basic command :

SELECT COUNT(*) FROM users

but rows always return [[0]](even when I have some lines on my table)

So for now I just do a "SELECT id FROM users" and I check row length

@will will closed this as completed in cafed28 Aug 28, 2015
@will
Copy link
Owner

will commented Aug 28, 2015

The return type for count(*) is bigint, which was broken. Thanks for the report

@mang
Copy link

mang commented Dec 11, 2018

Hi, I have the same problem still. Was this ever fixed? Or is there a way around it?

@RX14
Copy link
Contributor

RX14 commented Dec 15, 2018

This works, the correct type is Int64

@mang
Copy link

mang commented Dec 16, 2018

Oh, thanks a lot, that works:)

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

No branches or pull requests

4 participants