Python 在linux上,pyobdc中具有datetimeoffset类型的查询数据失败

Python 在linux上,pyobdc中具有datetimeoffset类型的查询数据失败,python,sql-server,docker,pyodbc,Python,Sql Server,Docker,Pyodbc,我在sql server数据库中有一个表,其中使用datetimeoffset数据类型存储时间 所有这些都在Windows10上运行良好,但当我将代码移动到docker容器(ubuntu 1604、python 3.7.6和pyobdc 4.0.30)时。Dockerfile使用添加的OBDC驱动程序 RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - RUN curl https://packag

我在sql server数据库中有一个表,其中使用datetimeoffset数据类型存储时间

所有这些都在Windows10上运行良好,但当我将代码移动到docker容器(ubuntu 1604、python 3.7.6和pyobdc 4.0.30)时。Dockerfile使用添加的OBDC驱动程序

RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17 unixodbc-dev
然后,我开始在datetimetoffset字段中选择以下数据,例如
选择日期自…

ProgrammingError: ('ODBC SQL type -155 is not yet supported.  column-index=0  type=-155', 'HY106')
我当前的解决方法是使用
选择convert(datetime,date)FROM…

我认为这是Linux上OBDC驱动程序的一个限制

我宁愿不更新sql,所以我想知道是否有替代我使用的OBDC驱动程序或其他选项