@@ -35,8 +35,6 @@ def import_mssql():
3535
3636
3737class Mixin_NormalizeValue (AbstractMixin_NormalizeValue ):
38- # TODO FIXME the output in this method seems correct but timestamp precision isn't
39- # being properly concatenated in tests
4038 def normalize_timestamp (self , value : str , coltype : TemporalType ) -> str :
4139 if coltype .precision > 0 :
4240 formatted_value = (
@@ -57,11 +55,6 @@ def normalize_number(self, value: str, coltype: FractionalType) -> str:
5755
5856class Mixin_MD5 (AbstractMixin_MD5 ):
5957 def md5_as_int (self , s : str ) -> str :
60- # TODO FYI
61- # I didn't see another way to do this
62- # keep in mind this also required reducing
63- # CHECKSUM_HEXDIGITS = 15 -> 14 due to the convert needing an even number of hex digits
64- # (affects all dbs)
6558 return f"convert(bigint, convert(varbinary, '0x' + RIGHT(CONVERT(NVARCHAR(32), HashBytes('MD5', { s } ), 2), { CHECKSUM_HEXDIGITS } ), 1))"
6659
6760
@@ -168,8 +161,6 @@ class MsSQL(ThreadedDatabase):
168161 def __init__ (self , host , port , user , password , * , database , thread_count , ** kw ):
169162 args = dict (server = host , port = port , database = database , user = user , password = password , ** kw )
170163 self ._args = {k : v for k , v in args .items () if v is not None }
171-
172- # TODO User supplied value?
173164 self ._args ["driver" ] = "{ODBC Driver 18 for SQL Server}"
174165
175166 # TODO temp dev debug
0 commit comments