mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 02:55:02 +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
|
||
---|---|---|
.. | ||
authorization_test.exs | ||
browsers_test.exs | ||
cities_test.exs | ||
conversions_test.exs | ||
countries_test.exs | ||
current_visitors_test.exs | ||
main_graph_test.exs | ||
operating_systems_test.exs | ||
pages_test.exs | ||
regions_test.exs | ||
screen_sizes_test.exs | ||
sources_test.exs | ||
suggestions_test.exs | ||
top_stats_test.exs |