Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Merge pull request #25 from marlonyao/master
Browse files Browse the repository at this point in the history
fix charset
  • Loading branch information
Jonas Tärnström committed Oct 18, 2012
2 parents 42315c7 + 211cb15 commit c3fa973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/umysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ PyObject *Connection_connect(Connection *self, PyObject *args)
self->PFN_PyUnicode_Encode = PyUnicode_EncodeUTF8;
}

if (!UMConnection_Connect (self->conn, host, port, username, password, database, acObj ? &autoCommit : NULL, charset))
if (!UMConnection_Connect (self->conn, host, port, username, password, database, acObj ? &autoCommit : NULL, self->charset))
{
return HandleError(self, "connect");
}
Expand Down

0 comments on commit c3fa973

Please sign in to comment.