From 51afbbde7911a761d0835c0d7d9941e2a7eb774e Mon Sep 17 00:00:00 2001 From: Ott Oopkaup Date: Mon, 7 Oct 2019 14:38:16 +0300 Subject: [PATCH] Fix integer overflow in beacon_dataset_counts_table Simple fix in init.sql currently seems all that is needed. When updating callcounts and variantcounts variant count is likely to overflow on even medium-sized datasets. --- data/init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/init.sql b/data/init.sql index 53c327b7..e2862870 100644 --- a/data/init.sql +++ b/data/init.sql @@ -29,7 +29,7 @@ variantcount: SELECT count(*) FROM beacon_data_table; CREATE TABLE IF NOT EXISTS beacon_dataset_counts_table ( datasetId VARCHAR(128), callCount INTEGER DEFAULT NULL, - variantCount INTEGER DEFAULT NULL + variantCount BIGINT DEFAULT NULL ); CREATE TABLE IF NOT EXISTS beacon_data_table (