The DB-API 2.0 spec specifies a Binary type. Since PostgreSQL can
handle very long strings it isn't really required by PyGreSQL but it
does fail the tests without it. I think I will apply the following
patch unless someone has a good reason not to.
Index: pgdb.py
===================================================================
RCS file: /usr/pubcvs/pygresql/module/pgdb.py,v
retrieving revision 1.30
diff -u -p -u -r1.30 pgdb.py
--- pgdb.py 18 Nov 2005 13:51:02 -0000 1.30
+++ pgdb.py 19 Jan 2006 11:58:10 -0000
@@ -445,6 +445,9 @@ def TimeFromTicks(ticks):
def TimestampFromTicks(ticks):
return apply(Timestamp, time.localtime(ticks)[:6])
+def Binary(str):
+ return str
+
# if run as script, print some information
if __name__ == '__main__':
print 'PyGreSQL version', version
--
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql