Report pages crash under psycopg2 >= 2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
To reproduce, go to /report/room and click on any location:
TypeError at /report/location
function takes at most 2 arguments (3 given)
The reason is that QuotedString in psycopg2 2.5 no longer the character encoding parameter. To fix, change this in /usr/local/
def escape(string):
return str(psycopg2.
to this:
def escape(string):
return str(psycopg2.
This change has no side effects. (The string will be encoded as UTF-8 no matter how you call the function.)
To reproduce the error condition with psycopg2 2.4, change to:
def escape(string):
return str(psycopg2.
Changed in nav: | |
status: | Fix Committed → Fix Released |
NAV 3.14 is not longer supported