Code

RRTimeslice: Quote the lower/upper bounds in the range output.
authorSebastian Harl <sh@tokkee.org>
Tue, 30 Oct 2012 07:03:28 +0000 (08:03 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 30 Oct 2012 07:03:28 +0000 (08:03 +0100)
src/rrtimeslice.c

index 6c135ec893ec865a6a18313d491e088c708dab71..25e9cb38c1ce2caf73eb3b7e5d5e476e4d4eda3b 100644 (file)
@@ -377,7 +377,7 @@ rrtimeslice_out(PG_FUNCTION_ARGS)
                buf_l[sizeof(buf_l) - 1] = '\0';
        }
 
-       snprintf(ts_str, sizeof(ts_str), "(%s, %s] #%i/%i",
+       snprintf(ts_str, sizeof(ts_str), "(\"%s\", \"%s\"] #%i/%i",
                        buf_l, buf_u, tslice->seq, num);
 
        result = pstrdup(ts_str);