Django SQLServer [FreeTDS][SQL Server]The data types nvarchar(max) and ntext are incompatible in the equal to operator

微笑、不失礼 提交于 2019-12-21 05:15:20

问题


I am getting the following error on doing django model.objects.get_or_create.

SQLServer [FreeTDS][SQL Server]The data types nvarchar(max) and ntext are incompatible in the equal to operator.

The column django is complaining about is NVARCHAR(MAX) with null allowed in SQLServer (which was auto created by Django migration). The Django model element is defined as TextField(null=True)

来源:https://stackoverflow.com/questions/39055935/django-sqlserver-freetdssql-serverthe-data-types-nvarcharmax-and-ntext-are

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!