The attached patched allows setting the locale of the connection to
match that of the server. Otherwise you are likely to get the 2403
warning/error from the Sybase if character sets mismatch in data.
It is implemented as a new keyword argument to Sybase.connect().
Example usage:
cnx = Sybase.connect(dbServer, dbUser, dbPasswd,
auto_commit=1, datetime = 'python',
locale = 'utf8')
Enjoy,
Harri
Privileged or confidential information may be contained in this message. If you are not the addressee of this message please notify the sender by return and thereafter delete the message, and you may not use, copy, disclose or rely on the information contained in it. Internet e-mail may be susceptible to data corruption, interception and unauthorised amendment for which Wall Street Systems does not accept liability. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachments have been swept for viruses, Wall Street Systems does not accept liability for any damage sustained as a result of viruses. Statements in this message or attachments that do not relate to the business of Wall Street Systems are neither given nor endorsed by the company or its Directors.
|