mssql: fix precision for time column in table mode

ref #11306
This commit is contained in:
Daniel Lee
2018-03-20 12:59:40 +01:00
parent f64c6e490a
commit ae4c6e4648
3 changed files with 68 additions and 71 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ func (e MssqlQueryEndpoint) transformToTable(query *tsdb.Query, rows *core.Rows,
if timeIndex != -1 {
switch value := values[timeIndex].(type) {
case time.Time:
values[timeIndex] = float64(value.Unix())
values[timeIndex] = (float64(value.Unix()) * 1000) + float64(value.Nanosecond()/1e6) // in case someone is trying to map times beyond 2262 :D
}
}