This reverts commit
2e4dec934cb5215d628e02ed717454c165a33e4d.
I approved this merge before observing that the "ssl_mode"
flag is not actually part of the separate "ssl" dictionary,
so this patch as given is unnecessary as we already pass
all strings into opts. but also I can't get the flag to work
on either mysqlclient or pymysql, it's not recognized. so
I need specific info from the submitter what it is that is
actually needed, and if a change is needed it has to be
appropriate for the drivers in use.
+++ /dev/null
-.. change::
- :tags: mysql, usecase
- :tickets: 5692
-
- Added ``ssl_mode`` dialect keyword to MySQL dialect for use with mysqldb.
- Pull request courtesy Teodor Moroz.
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.
make_url(
"mysql://scott:tiger@localhost:3306/test"
"?ssl_ca=/ca.pem&ssl_cert=/cert.pem&ssl_key=/key.pem"
- "&ssl_mode=REQUIRED"
)
)[1]
# args that differ among mysqldb and oursql
"cert": "/cert.pem",
"key": "/key.pem",
},
- "ssl_mode": "REQUIRED",
"host": "localhost",
"user": "scott",
"port": 3306,