Hi all. I want to create a trigger in a PostgreSQL database table. I use
a cursor.execute(sql) statement in a management.py file at my app folder.
But I've got the error: "IndexError: tuple index out of range" becouse
of an '%' character in the format of a PostgreSQL Raise Exception statement
The Statement inside the trigger function, have this form:
RAISE EXCEPTION 'You must enter a value in a range ( % to % ), value1,
value2
If I cut off the % character and put a simple message, cursor.execute
run successfully, but I need show the original range information message.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.