Zsolt Cserna
-
2008-05-29
This simple patch enables the module to connect to db2 by specifying connectstring to connect() as dsn.
The patch searches for equals sign in dsn keyword argument. If it finds that, it uses SQLDriverConnect to make the connection rather than SQLConnect. If equals sign is not found in the argument it uses SQLConnect (it's the default in the original code).