[tor-commits] [metrics-web/master] Use unquoted empty string in userstats-combined.csv.

karsten at torproject.org karsten at torproject.org
Thu Jan 19 20:27:09 UTC 2017


commit 90ed8824011c16d8af4694b576a09b3e26ea2327
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Thu Jan 19 20:47:38 2017 +0100

    Use unquoted empty string in userstats-combined.csv.
    
    Fixes #21223.
---
 modules/clients/init-userstats.sql | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/clients/init-userstats.sql b/modules/clients/init-userstats.sql
index 314ff58..25422a6 100644
--- a/modules/clients/init-userstats.sql
+++ b/modules/clients/init-userstats.sql
@@ -705,8 +705,9 @@ CREATE OR REPLACE VIEW combined AS SELECT
   -- for unknown pluggable transports.
   a.transport,
 
-  -- The IP address version of this estimate, which is always ''.
-  ''::TEXT as version,
+  -- The IP address version of this estimate, which is always NULL
+  -- (unquoted empty string in CSV output).
+  NULL::TEXT as version,
 
   -- Estimated fraction of nodes reporting directory requests, which is
   -- used to extrapolate observed requests to estimated total requests in



More information about the tor-commits mailing list