]> git.ipfire.org Git - location/libloc.git/commitdiff
importer: Accept ASNs larger than PostgreSQL's integer
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Nov 2025 16:30:23 +0000 (16:30 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 20 Nov 2025 16:30:23 +0000 (16:30 +0000)
We seem to be importing some garbage here which makes the temporary
table overflow. Therefore we are increase the maximum size of the ASN
field to be able to render the database.

Any invalid data is being filtered out regardless.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in

index 407278417f4d7ea1486cacac63daf85907311eb5..1ff818ce2596ce68f8f60935e0f8f141f381c5c6 100644 (file)
@@ -379,7 +379,7 @@ class CLI(object):
                                n
                        (
                                network               inet NOT NULL,
-                               autnum                integer,
+                               autnum                bigint,
                                country               text,
                                is_anonymous_proxy    boolean,
                                is_satellite_provider boolean,