esnme/ultramysql — pull request #11 by hongqn (2012-02-28 14:22:43+00:00)
Title: Stop raising SystemError when no database name given

The test case `tests.testConnectAutoCommitOff` always fails, raising `SystemError: error return without exception set` .

After a bit of debugging, I found there is a little logic error when the database parameter is empty. I fixed the bug in this pull request, and use `HandleError()` in `Connection_connect()` to raise `umysql.Error` execeptions instead of meaningless `SystemError`.