# HG changeset patch # User casties # Date 1329933185 -3600 # Node ID 5b99c04c567c2c45ad1cb8471457aa2bc28b1a5c # Parent 9fb0d4f24486ed6db725b9e3728682697e067005 fix for psycopg 2.4 Column type. diff -r 9fb0d4f24486 -r 5b99c04c567c DBInterface.py --- a/DBInterface.py Thu Nov 17 14:06:52 2011 +0100 +++ b/DBInterface.py Wed Feb 22 18:53:05 2012 +0100 @@ -171,6 +171,12 @@ cur.execute(query, args) # description of returned fields fields = cur.description + logging.debug("fields: %s"%repr(fields)) + if len(fields) > 0: + # re-pack Column object in tuple + fields = (f[0:] for f in fields) + logging.debug("re-packed fields: %s"%repr(fields)) + if hasResult: # get all data in an array data = cur.fetchall() diff -r 9fb0d4f24486 -r 5b99c04c567c version.txt --- a/version.txt Thu Nov 17 14:06:52 2011 +0100 +++ b/version.txt Wed Feb 22 18:53:05 2012 +0100 @@ -1,1 +1,1 @@ -1.4 \ No newline at end of file +1.5 \ No newline at end of file