OS: Windows
Python version: 3.5.2
Django version: tried both with 1.11 and 2.0
Django-pyodbc-azure version: tried both with 1.11 and 2.0 (respectively)
I have a model that contains a filed "question_text" of type TextField.
When I try to insert something of small length (1000 char) it works fine.
However, when I try to insert something bigger (6000 char) it throws an Invalid precision value error.
Models
class Question(models.Model):
question_text = models.TextField()
pub_date = models.DateTimeField()
Tests
class Tests(TransactionTestCase):
def test_text_field_fail(self):
a = 'a'*8000
q = Question(question_text=a, pub_date=datetime.datetime.now())
q.save()
def test_text_field_pass(self):
a = 'a' * 100
q = Question(question_text=a, pub_date=datetime.datetime.now())
q.save()
OS: Windows Python version: 3.5.2 Django version: tried both with 1.11 and 2.0 Django-pyodbc-azure version: tried both with 1.11 and 2.0 (respectively)
I have a model that contains a filed "question_text" of type TextField. When I try to insert something of small length (1000 char) it works fine. However, when I try to insert something bigger (6000 char) it throws an Invalid precision value error.
Models
Tests
Settings