You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

178 lines
7.9 KiB

  1. ## Version 1.4.1 (2018-11-14)
  2. Bugfixes:
  3. - Fix TIME format for binary columns (#818)
  4. - Fix handling of empty auth plugin names (#835)
  5. - Fix caching_sha2_password with empty password (#826)
  6. - Fix canceled context broke mysqlConn (#862)
  7. - Fix OldAuthSwitchRequest support (#870)
  8. - Fix Auth Response packet for cleartext password (#887)
  9. ## Version 1.4 (2018-06-03)
  10. Changes:
  11. - Documentation fixes (#530, #535, #567)
  12. - Refactoring (#575, #579, #580, #581, #603, #615, #704)
  13. - Cache column names (#444)
  14. - Sort the DSN parameters in DSNs generated from a config (#637)
  15. - Allow native password authentication by default (#644)
  16. - Use the default port if it is missing in the DSN (#668)
  17. - Removed the `strict` mode (#676)
  18. - Do not query `max_allowed_packet` by default (#680)
  19. - Dropped support Go 1.6 and lower (#696)
  20. - Updated `ConvertValue()` to match the database/sql/driver implementation (#760)
  21. - Document the usage of `0000-00-00T00:00:00` as the time.Time zero value (#783)
  22. - Improved the compatibility of the authentication system (#807)
  23. New Features:
  24. - Multi-Results support (#537)
  25. - `rejectReadOnly` DSN option (#604)
  26. - `context.Context` support (#608, #612, #627, #761)
  27. - Transaction isolation level support (#619, #744)
  28. - Read-Only transactions support (#618, #634)
  29. - `NewConfig` function which initializes a config with default values (#679)
  30. - Implemented the `ColumnType` interfaces (#667, #724)
  31. - Support for custom string types in `ConvertValue` (#623)
  32. - Implemented `NamedValueChecker`, improving support for uint64 with high bit set (#690, #709, #710)
  33. - `caching_sha2_password` authentication plugin support (#794, #800, #801, #802)
  34. - Implemented `driver.SessionResetter` (#779)
  35. - `sha256_password` authentication plugin support (#808)
  36. Bugfixes:
  37. - Use the DSN hostname as TLS default ServerName if `tls=true` (#564, #718)
  38. - Fixed LOAD LOCAL DATA INFILE for empty files (#590)
  39. - Removed columns definition cache since it sometimes cached invalid data (#592)
  40. - Don't mutate registered TLS configs (#600)
  41. - Make RegisterTLSConfig concurrency-safe (#613)
  42. - Handle missing auth data in the handshake packet correctly (#646)
  43. - Do not retry queries when data was written to avoid data corruption (#302, #736)
  44. - Cache the connection pointer for error handling before invalidating it (#678)
  45. - Fixed imports for appengine/cloudsql (#700)
  46. - Fix sending STMT_LONG_DATA for 0 byte data (#734)
  47. - Set correct capacity for []bytes read from length-encoded strings (#766)
  48. - Make RegisterDial concurrency-safe (#773)
  49. ## Version 1.3 (2016-12-01)
  50. Changes:
  51. - Go 1.1 is no longer supported
  52. - Use decimals fields in MySQL to format time types (#249)
  53. - Buffer optimizations (#269)
  54. - TLS ServerName defaults to the host (#283)
  55. - Refactoring (#400, #410, #437)
  56. - Adjusted documentation for second generation CloudSQL (#485)
  57. - Documented DSN system var quoting rules (#502)
  58. - Made statement.Close() calls idempotent to avoid errors in Go 1.6+ (#512)
  59. New Features:
  60. - Enable microsecond resolution on TIME, DATETIME and TIMESTAMP (#249)
  61. - Support for returning table alias on Columns() (#289, #359, #382)
  62. - Placeholder interpolation, can be actived with the DSN parameter `interpolateParams=true` (#309, #318, #490)
  63. - Support for uint64 parameters with high bit set (#332, #345)
  64. - Cleartext authentication plugin support (#327)
  65. - Exported ParseDSN function and the Config struct (#403, #419, #429)
  66. - Read / Write timeouts (#401)
  67. - Support for JSON field type (#414)
  68. - Support for multi-statements and multi-results (#411, #431)
  69. - DSN parameter to set the driver-side max_allowed_packet value manually (#489)
  70. - Native password authentication plugin support (#494, #524)
  71. Bugfixes:
  72. - Fixed handling of queries without columns and rows (#255)
  73. - Fixed a panic when SetKeepAlive() failed (#298)
  74. - Handle ERR packets while reading rows (#321)
  75. - Fixed reading NULL length-encoded integers in MySQL 5.6+ (#349)
  76. - Fixed absolute paths support in LOAD LOCAL DATA INFILE (#356)
  77. - Actually zero out bytes in handshake response (#378)
  78. - Fixed race condition in registering LOAD DATA INFILE handler (#383)
  79. - Fixed tests with MySQL 5.7.9+ (#380)
  80. - QueryUnescape TLS config names (#397)
  81. - Fixed "broken pipe" error by writing to closed socket (#390)
  82. - Fixed LOAD LOCAL DATA INFILE buffering (#424)
  83. - Fixed parsing of floats into float64 when placeholders are used (#434)
  84. - Fixed DSN tests with Go 1.7+ (#459)
  85. - Handle ERR packets while waiting for EOF (#473)
  86. - Invalidate connection on error while discarding additional results (#513)
  87. - Allow terminating packets of length 0 (#516)
  88. ## Version 1.2 (2014-06-03)
  89. Changes:
  90. - We switched back to a "rolling release". `go get` installs the current master branch again
  91. - Version v1 of the driver will not be maintained anymore. Go 1.0 is no longer supported by this driver
  92. - Exported errors to allow easy checking from application code
  93. - Enabled TCP Keepalives on TCP connections
  94. - Optimized INFILE handling (better buffer size calculation, lazy init, ...)
  95. - The DSN parser also checks for a missing separating slash
  96. - Faster binary date / datetime to string formatting
  97. - Also exported the MySQLWarning type
  98. - mysqlConn.Close returns the first error encountered instead of ignoring all errors
  99. - writePacket() automatically writes the packet size to the header
  100. - readPacket() uses an iterative approach instead of the recursive approach to merge splitted packets
  101. New Features:
  102. - `RegisterDial` allows the usage of a custom dial function to establish the network connection
  103. - Setting the connection collation is possible with the `collation` DSN parameter. This parameter should be preferred over the `charset` parameter
  104. - Logging of critical errors is configurable with `SetLogger`
  105. - Google CloudSQL support
  106. Bugfixes:
  107. - Allow more than 32 parameters in prepared statements
  108. - Various old_password fixes
  109. - Fixed TestConcurrent test to pass Go's race detection
  110. - Fixed appendLengthEncodedInteger for large numbers
  111. - Renamed readLengthEnodedString to readLengthEncodedString and skipLengthEnodedString to skipLengthEncodedString (fixed typo)
  112. ## Version 1.1 (2013-11-02)
  113. Changes:
  114. - Go-MySQL-Driver now requires Go 1.1
  115. - Connections now use the collation `utf8_general_ci` by default. Adding `&charset=UTF8` to the DSN should not be necessary anymore
  116. - Made closing rows and connections error tolerant. This allows for example deferring rows.Close() without checking for errors
  117. - `[]byte(nil)` is now treated as a NULL value. Before, it was treated like an empty string / `[]byte("")`
  118. - DSN parameter values must now be url.QueryEscape'ed. This allows text values to contain special characters, such as '&'.
  119. - Use the IO buffer also for writing. This results in zero allocations (by the driver) for most queries
  120. - Optimized the buffer for reading
  121. - stmt.Query now caches column metadata
  122. - New Logo
  123. - Changed the copyright header to include all contributors
  124. - Improved the LOAD INFILE documentation
  125. - The driver struct is now exported to make the driver directly accessible
  126. - Refactored the driver tests
  127. - Added more benchmarks and moved all to a separate file
  128. - Other small refactoring
  129. New Features:
  130. - Added *old_passwords* support: Required in some cases, but must be enabled by adding `allowOldPasswords=true` to the DSN since it is insecure
  131. - Added a `clientFoundRows` parameter: Return the number of matching rows instead of the number of rows changed on UPDATEs
  132. - Added TLS/SSL support: Use a TLS/SSL encrypted connection to the server. Custom TLS configs can be registered and used
  133. Bugfixes:
  134. - Fixed MySQL 4.1 support: MySQL 4.1 sends packets with lengths which differ from the specification
  135. - Convert to DB timezone when inserting `time.Time`
  136. - Splitted packets (more than 16MB) are now merged correctly
  137. - Fixed false positive `io.EOF` errors when the data was fully read
  138. - Avoid panics on reuse of closed connections
  139. - Fixed empty string producing false nil values
  140. - Fixed sign byte for positive TIME fields
  141. ## Version 1.0 (2013-05-14)
  142. Initial Release