Skip to content

v2.2.0

Latest

Choose a tag to compare

@qustavo qustavo released this 04 Dec 09:58
b65a342

Added:

  • Conn and Stmt implement driver.NamedValueChecker (CheckNamedValue), delegating to the wrapped driver #59

Fixed:

  • Compose no longer panics in OnError when the driver returns an uncomparable error type such as mssql.Error #56
  • Wrapped connections and statements now delegate driver.NamedValueChecker to the underlying driver, so driver-specific argument conversion keeps working (e.g. go-sql-driver/mysql accepting uint64 values with the high bit set) #59

Changed:

  • Compose now matches OnError hook errors against the original cause with errors.Is. A hook error that wraps the cause (e.g. fmt.Errorf("...: %w", err)) is no longer returned; the original cause is.
  • Removed the go1.10 build tags; driver.SessionResetter support is now unconditional (the module already requires Go 1.13).