golistic / pxmysql

Go MySQL driver using X Protocol
MIT License
14 stars 0 forks source link

Fix parsing DSN so query string is handled correctly #3

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

Previously the query string when parsing the data source was ignored. This prevented optional settings to be provided such as useTLS, which then did not allow users to sign in to (first time) MySQL when using caching_sha2_password.

We now correctly detect whether there is a query string. This makes now sure that for example useTLS is respected.

We also added missing tests.