11 Commits

Author SHA1 Message Date
a0e8437f8f Used PostgreSQL TSDB as a model the set up the __timeFilter, __timeFrom, and __timeTo macros for Microsoft SQL and MySQL 2018-06-29 03:48:14 +00:00
105b3d6804 Switched MySQL and MSSQL macros for timeFilter and related to use BETWEEN and calculate UNIX time server side instead of database side. Fixes #11618 #11619 2018-06-25 20:11:58 +00:00
f5586b1270 tsdb: sql data sources should handle time ranges before epoch start correctly 2018-04-12 18:53:12 +02:00
b0076d4f65 mssql: remove UTC conversion in macro functions
Removes the macro function . Macro functions should not do UTC/timezone conversion - they should
work in the same way as postgres and mysql datasource implementations.
Grafana and Microsft SQL Server should be run on servers with UTC timezones.
2018-03-22 14:55:44 +01:00
3ccadff800 mssql: fix timeGroup macro so that it properly creates correct groups
Earlier the division of interval was done using whole numbers resulting in that important information
was lost/too many time series merged to the same group. Now using division of floating point and rounding
up to solve the problem
2018-03-22 14:49:40 +01:00
d14946a135 mssql: cleanup and minor refactor 2018-03-19 13:32:04 +01:00
571556e1d8 mssql: adds fill to timeGroup macro. 2018-03-15 13:11:26 +01:00
c87752102a mssql datasource: support for timeGroup macro function 2018-03-13 22:49:49 +01:00
d4beee2bb0 Merge branch 'master' into mssql_datasource 2018-03-13 16:03:02 +01:00
6e7a067857 adding support for sgl native time datatypes 2017-12-12 23:43:24 +03:00
6f3a62d299 add _tests for mssql data source 2017-12-03 21:56:21 +03:00