FSX / momoko

Wraps (asynchronous) Psycopg2 for Tornado.
http://momoko.61924.nl/
Other
360 stars 73 forks source link

Fix issue with psycopg 2.2.1 where it can't take a None factory. #30

Closed swbrown closed 12 years ago

swbrown commented 12 years ago

On the version of psycopg2 on Squeeze (2.2.1), passing None as the connection_factory raises an exception. This changes it to not pass that argument at all when it's None.

FSX commented 12 years ago

Thanks!