Django

Code

Show
Ignore:
Timestamp:
12/10/07 20:22:40 (1 year ago)
Author:
ikelly
Message:

Fixed ORA-01461 error when trying to store more than 4000 bytes in a TextField? under Oracle

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/model_regress/models.py

    r6195 r6905  
    1212    status = models.IntegerField(blank=True, null=True, choices=CHOICES) 
    1313    misc_data = models.CharField(max_length=100, blank=True) 
     14    article_text = models.TextField() 
    1415 
    1516    class Meta: 
     
    4243>>> a2.misc_data 
    4344u'' 
     45 
     46# TextFields can hold more than 4000 characters (this was broken in Oracle). 
     47>>> a3 = Article(headline="Really, really big", pub_date=datetime.now()) 
     48>>> a3.article_text = "ABCDE" * 1000 
     49>>> a3.save() 
     50>>> a4 = Article.objects.get(pk=a3.id) 
     51>>> len(a4.article_text) 
     525000 
     53 
    4454""" 
    4555}