Commit ad062d4
Fix SQL mode check to respect custom connection parameters
The get_current_sql_modes() method was ignoring custom connection
parameters like --host, --dbuser, and --defaults, causing authentication
failures. Now it properly passes these parameters through when checking
SQL modes.
This fixes the reported issue while maintaining WordPress SQL mode
compatibility for queries that need it.
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Agent-Logs-Url: https://github.com/wp-cli/db-command/sessions/f848d9cd-25e0-4d45-863e-8037bec7af831 parent 7923265 commit ad062d4
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
608 | 613 | | |
609 | 614 | | |
610 | 615 | | |
| |||
2296 | 2301 | | |
2297 | 2302 | | |
2298 | 2303 | | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
2302 | 2310 | | |
2303 | 2311 | | |
2304 | 2312 | | |
| |||
0 commit comments