golistic / pxmysql

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

DataSource.String() does not reproduce the query part #11

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

Unrelated but important: The DSN/DNS mix-up happened: pxmysql.ParseDNS must of course be pxmysql.ParseDSN.

Given DSN scott:tiger@tcp(127.0.0.1)/employees?useTLS=true and we parse it using pxmysql.ParseDSN we get the parsed version. The String() method should give us again the same DSN, but the query part is missing.