Commit e1ad919
committed
fix: Enable SSL by default when use_tls not specified
When use_tls=None (auto-detect), now sets ssl=True which the MySQL adapter
converts to ssl={} for PyMySQL, properly enabling SSL with default settings.
Before: use_tls=None → ssl={} → might not enable SSL properly
After: use_tls=None → ssl=True → converted to ssl={} → enables SSL
The retry logic (lines 218-231) still allows fallback to non-SSL if the
server doesn't support it (since ssl_input=None).
Fixes test_secure_connection - SSL now enabled when connecting with default parameters.1 parent efb8482 commit e1ad919
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
176 | 184 | | |
177 | 185 | | |
178 | 186 | | |
| |||
0 commit comments