Releases: cockroachdb/copyist
v1.7.0 Release
This release includes improved handling of the driver.ErrSkip
error and support for the driver.NamedValueChecker
interface.
v1.6.0 Release
This release reports playback failures as testing.T Fatal errors rather than
panicking. This enables the Go testing framework to continue running tests
in the package rather than halting on a panic. It also avoids deadlocks that
happen when a panic skips over an un-deferred lock release statement.
v1.5.0 Release
This release adds support for recording pgconn.PgError
s which appear from pgx
based drivers.
It also introduces a new pgproto3/v2 dependency.
v1.4.1 Release
This release fixes a bug introduced in v1.4.0 that caused any panic in a test other than a copyist.sessionError
to be swallowed allowing the test to pass incorrectly.
v1.4.0 Release
This release:
- Calls
testing.T.Fatalf
on recording mismatch instead of panicing if the mismatch is detected on the main test goroutine.
v1.3.0 Release
This release:
- Serializes
pq.Error
objects with full fidelity, so that the error code (and other fields) is preserved. - Bumps dependency versions
v1.2.2 Release
The release fixes a bug introduced in v1.2.1 in proxyConn.ExecContext
(called via sql.{Conn,DB}.{Exec,ExecContext}
) which caused a recorded error to never be replayed.
v1.2.1 Release
This release adds support for:
- The driver.ExecerContext and driver.QueryerContext interfaces which allow running multiple SQL statements in a single Conn.ExecContext or Conn.QueryContext call. Previously multiple SQL statements were not supported because the lack of implementation of these interfaces meant that PrepareContext was used which only supports a single SQL statement in the Postgres wire protocol.
v1.2.0 Release
This release adds support for:
- pgx stdlib driver
- Multiple drivers in the same session
NOTE: This release contains a breaking API change. The copyist.Register
function no longer takes a resetDB argument; use the copyist.SetSessionInit
function instead.
v1.1.2 Release
Fix connection leak bug.