Have the Connection parameters in v0.3B changed?

Asked by venura

Hi,

Ive downloaded the new v0.3B and it appears the connection parameters have changed and am not sure how I should be using the new library.
when connecting:
 con = PySQLPool.getNewConnection(host = 'host', username='user', password='pwd', schema='test', commitOnEnd =False)
I get a string and int concatenation error. I believe that this might be a bug (but am not sure am using it correctly) I changed the source on PySQLConnection line 52 to hashStr += str(self.info[key]) which was a simple fix.After that it got a bit more complicated. I then started getting another error
TypeError: 'username' is an invalid keyword argument for this function. Debugging through it it appears that this error has something to do with unknown para being passed to MySQLdb.connect() method.

Thanks,
Venura

Question information

Language:
English Edit question
Status:
Answered
For:
PySQLPool Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Nikoleta Verbeck (nerdynick) said :
#1

I added support for legacy connection strings but it looks like in the process some things broke down the line. I have created 2 bug reports to work on resolving these issues and will work on getting patches out ASAP. I will also get your change to the hashStr line in as part of the solution for the 1st bug.

You will find the bugs linked in on the right side menu.

Revision history for this message
Nikoleta Verbeck (nerdynick) said :
#2

I think I have fixed the bugs you reported and have committed them to SVN. I will be running a few test on these changes to make sure they do work but if your willing to do a check out and test that will help greatly.

Can you help with this problem?

Provide an answer of your own, or ask venura for more information if necessary.

To post a message you must log in.