When the asns table is empty, SUM() returns NULL which cannot be scanned into an int. Wrap SUM expressions in COALESCE to return 0 instead of NULL. |
||
|---|---|---|
| .. | ||
| config | ||
| database | ||
| logger | ||
| metrics | ||
| ristypes | ||
| routewatch | ||
| server | ||
| streamer | ||
| templates | ||
| version | ||
| whois | ||
When the asns table is empty, SUM() returns NULL which cannot be scanned into an int. Wrap SUM expressions in COALESCE to return 0 instead of NULL. |
||
|---|---|---|
| .. | ||
| config | ||
| database | ||
| logger | ||
| metrics | ||
| ristypes | ||
| routewatch | ||
| server | ||
| streamer | ||
| templates | ||
| version | ||
| whois | ||