]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
add on_connect to MySQLDialect_pyodbc
authorGord Thompson <gord@gordthompson.com>
Sun, 20 Oct 2019 15:04:51 +0000 (11:04 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Sun, 20 Oct 2019 15:04:51 +0000 (11:04 -0400)
commit8ebc3ebffcd5d06ae9edc6d80a6e943d3499ea14
treeeff2ceb255466ace87a7f174aafffb00a0a9aca6
parent7859fb6ff073d10c92083b1d50d021442e783875
add on_connect to MySQLDialect_pyodbc

Fixes: #4876
<!-- Provide a general summary of your proposed changes in the Title field above -->

### Description
add on_connect to MySQLDialect_pyodbc to specify Unicode encoding/decoding settings for the pyodbc connection

### Checklist
<!-- go over following points. check them with an `x` if they do apply, (they turn into clickable checkboxes once the PR is submitted, so no need to do everything at once)

-->

This pull request is:

- [ ] A documentation / typographical error fix
- Good to go, no issue or tests are needed
- [x] A short code fix
- please include the issue number, and create an issue if none exists, which
  must include a complete example of the issue.  one line code fixes without an
  issue and demonstration will not be accepted.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.   one line code fixes without tests will not be accepted.
- [ ] A new feature implementation
- please include the issue number, and create an issue if none exists, which must
  include a complete example of how the feature would look.
- Please include: `Fixes: #<issue number>` in the commit message
- please include tests.

**Have a nice day!**

Closes: #4885
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4885
Pull-request-sha: 58f6176331702b72f3ea8342c93be6fe9a3db26f

Change-Id: If05c1cf8fb1d8efebcf809bdefe40242118d763f
lib/sqlalchemy/dialects/mysql/pyodbc.py