denodb icon indicating copy to clipboard operation
denodb copied to clipboard

Aggregation query error, no such column: count(*)

Open sbelzile-nexapp opened this issue 3 years ago • 3 comments

Steps to reproduce:

  1. initialize a connection to the db with sqlite (I did not try others)
  2. Query a table like this MyModel.select('age', 'count(*)').groupBy('age');

Result: Uncaught SqliteError: no such column: count(*)

Is this an issue, or is there another way to select aggregations?

sbelzile-nexapp avatar Jan 07 '21 01:01 sbelzile-nexapp

I ran into this issue tonight, was very surprised to see this issue open.

richardanaya avatar May 22 '21 03:05 richardanaya

Lack of this feature seems like it'd destroy performance

richardanaya avatar May 22 '21 03:05 richardanaya

I did some digging into the code, it seems like this is a problem more with a dependent library dex than denodb, unfortunately it doesn't look like dex is maintained anymore.

richardanaya avatar May 22 '21 04:05 richardanaya