]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Added ssl_mode flag to mysqldb
authorTeodor Moroz <teodor.moroz@openvpn.net>
Wed, 11 Nov 2020 13:17:54 +0000 (15:17 +0200)
committerTeodor Moroz <teodor.moroz@openvpn.net>
Wed, 11 Nov 2020 13:17:54 +0000 (15:17 +0200)
lib/sqlalchemy/dialects/mysql/mysqldb.py

index b20e061fb50e50fa8a2841823986e9d54da016f0..664c7a047429703d172a22458a1ab1ce808ae10e 100644 (file)
@@ -189,6 +189,7 @@ class MySQLDialect_mysqldb(MySQLDialect):
         util.coerce_kw_type(opts, "write_timeout", int)
         util.coerce_kw_type(opts, "client_flag", int)
         util.coerce_kw_type(opts, "local_infile", int)
+        util.coerce_kw_type(opts, "ssl_mode", str)
         # Note: using either of the below will cause all strings to be
         # returned as Unicode, both in raw SQL operations and with column
         # types like String and MSString.