Django 1.7 ORA-01461 Error on inserting session data >=2k characters

26 views
Skip to first unread message

Vuppuluri Rohit

unread,
Jul 22, 2015, 1:20:17 PM7/22/15
to Django users
When trying to insert session data with 2k characters or greater into the database, an error shows up:

This happens only on INSERTS and not on UPDATES.

There are a few tickets out there, which have been closed based on the fix applied for 4k characters but haven't found anything for the issue mentioned above. One suggestion posted out was to reduce the number of characters from 4000 to 1000, but it looks more like a hack than a fix. Does anyone know any way of fixing the issue or a workaround for it?


  

Vuppuluri Rohit

unread,
Jul 22, 2015, 4:32:51 PM7/22/15
to Django users, rohit.v...@gmail.com
Steps to replicate this issue:

Install Django 1.7.7
Install cx_oracle=5.2
Create a django project and a simple model.
Go to  the shell using python manage.py
Run the following: https://dpaste.de/cpcV
Reply all
Reply to author
Forward
0 new messages