Skip to content

Releases: puellanivis/sqlcl

Update to breton v0.2.12

03 Jun 17:49
Compare
Choose a tag to compare
v0.0.3

update to breton v0.2.12

Detect protocol coding in unprefixed MySQL DSNs

02 Oct 15:28
Compare
Choose a tag to compare

While the mysql driver largely has been fixed to prevent the issue of url.Parse not working with non-numeric ports, this code still presumed that one could simply prepend mysql:// and then remove any XYZ() that occurred in the URL.

This was erroneous, and caused the code to not work, again because url.Parse was given a broken URL.

Now, the code:

  • detects if there is a tcp(…) in the DSN, and converts that to what should be a valid URL by removing the tcp( and ).
  • detects a unix(…) which causes it to entirely remove the whole unix(…) section, and pass a new value that is used to specify the socket to connect on.

The result is a more robust mapping of expected DSNs that should connect through the command-line the same as the golang mysql driver would.

Initial versioned release

26 Sep 11:36
Compare
Choose a tag to compare
v0.0.1

update dependencies