mirror of
https://github.com/plausible/analytics.git
synced 2024-11-23 11:12:15 +03:00
535874be6f
* Reject unknown imported cities from queries
This commit fixes a bug where the city report returned `N/A` entries.
The functions that build imported data queries were using SQL
`COALESCE`, assuming city data is `NULL` when unknown, when actually its
unknown value is `0`.
This commit addresses the problem using SQL `NULLIF` combined with the
previous `COALESCE` call. With this change both `0` and `NULL` are
treated as unknown.
Since
|
||
---|---|---|
.. | ||
controllers | ||
plugs | ||
views | ||
captcha_test.exs | ||
email_test.exs |