From dd64838db9944a69ce2ccc3265c0997acead2d32 Mon Sep 17 00:00:00 2001 From: Kevin Barnard Date: Thu, 30 Nov 2023 10:06:58 -0800 Subject: [PATCH] fix: Pin TDS version back to 7.0 pymssql with TDS 7.3 parses datetime2 as datetime, leading to a drop in timestamp resolution (100 ns -> ~3 ms). This causes incorrect frames to occasionally be grabbed from Beholder. --- vars_gridview/lib/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars_gridview/lib/sql.py b/vars_gridview/lib/sql.py index 84340ef..eb9bcec 100644 --- a/vars_gridview/lib/sql.py +++ b/vars_gridview/lib/sql.py @@ -91,7 +91,7 @@ def connect(server_url: str, user: str, password: str, database: str): user=user, password=password, database=database, - tds_version="7.3", + tds_version="7.0", )