fixed counts for sqlite vs postgres
This commit is contained in:
parent
f1c1748b34
commit
cc0ca06470
3 changed files with 16 additions and 4 deletions
|
@ -112,7 +112,10 @@ sub _purchases_avg_spend_duration {
|
|||
columns => [
|
||||
{
|
||||
quantised => 'quantised_days',
|
||||
count => \"COUNT(*)",
|
||||
count => $c->pg_or_sqlite(
|
||||
'count',
|
||||
"COUNT(*)",
|
||||
),
|
||||
sum_value => $c->pg_or_sqlite(
|
||||
'SUM("me"."value")',
|
||||
'SUM("me"."value")',
|
||||
|
|
Reference in a new issue