]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Allow reflecting UUID in MariaDB
authorkrzysdz <krzysdz@users.noreply.github.com>
Thu, 29 Jun 2023 22:00:55 +0000 (18:00 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Thu, 29 Jun 2023 22:00:55 +0000 (18:00 -0400)
commit044f367dcb8eb2eacd8e380231baa66e8e560f10
tree5b2bf60b3dce313e09aa71cbe97a0927e52583d5
parente3bb7a6997ba42d9eed4e337837b6cdf803b6882
Allow reflecting UUID in MariaDB

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

### Description
<!-- Describe your changes in detail -->

Added the `"uuid"` key to `ischema_names` to enable lookup of `UUID` columns in reflection. There's also a new short test (MariaDB 10.7+ only) in the mysql reflection tests to verify if this feature works correctly.

Fixes #10028

### 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: #10029
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/10029
Pull-request-sha: 7c2838b1dd5a34166158f5e241af72a6d3d8be85

Change-Id: Ifa1f51f472809b35374a7e2c6b85412046133452
doc/build/changelog/unreleased_20/10028.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/base.py
test/dialect/mysql/test_reflection.py