summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/mysql/base.py
diff options
context:
space:
mode:
authorlong2ice <long2ice@gmail.com>2021-09-16 11:08:25 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-09-17 11:20:19 -0400
commit11eecfacb7b36c209c1ad726f5e5b7525860977b (patch)
tree6bc6e32e3defe9099e217fcb2ba5205339dca200 /lib/sqlalchemy/dialects/mysql/base.py
parentdb847ca4e52de0e70d4993d1b7ac4de1c947b864 (diff)
downloadsqlalchemy-11eecfacb7b36c209c1ad726f5e5b7525860977b.tar.gz
Add `asyncmy` support
Added initial support for the ``asyncmy`` asyncio database driver for MySQL and MariaDB. This driver is very new, however appears to be the only current alternative to the ``aiomysql`` driver which currently appears to be unmaintained and is not working with current Python versions. Much thanks to long2ice for the pull request for this dialect. Fixes: #6993 Closes: #7000 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/7000 Pull-request-sha: f7d6c811fc72324a83c8af635bbca8b268b0098e Change-Id: I4ef54b43334feff7e3a710fc4de6821437f3bb68
Diffstat (limited to 'lib/sqlalchemy/dialects/mysql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/mysql/base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/mysql/base.py b/lib/sqlalchemy/dialects/mysql/base.py
index 9bf12e194..04b0c1b6d 100644
--- a/lib/sqlalchemy/dialects/mysql/base.py
+++ b/lib/sqlalchemy/dialects/mysql/base.py
@@ -2915,7 +2915,10 @@ class MySQLDialect(default.DefaultDialect):
"WHERE TABLE_TYPE='SEQUENCE' and TABLE_NAME=:name AND "
"TABLE_SCHEMA=:schema_name"
),
- dict(name=sequence_name, schema_name=schema),
+ dict(
+ name=util.text_type(sequence_name),
+ schema_name=util.text_type(schema),
+ ),
)
return cursor.first() is not None