Merge branch 'master' into 2517
This commit is contained in:
commit
8215224f7b
2
main.go
2
main.go
@ -528,7 +528,7 @@ func (s *DB) Begin() *DB {
|
|||||||
return s.BeginTx(context.Background(), &sql.TxOptions{})
|
return s.BeginTx(context.Background(), &sql.TxOptions{})
|
||||||
}
|
}
|
||||||
|
|
||||||
// BeginTX begins a transaction with options
|
// BeginTx begins a transaction with options
|
||||||
func (s *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) *DB {
|
func (s *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) *DB {
|
||||||
c := s.clone()
|
c := s.clone()
|
||||||
if db, ok := c.db.(sqlDb); ok && db != nil {
|
if db, ok := c.db.(sqlDb); ok && db != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user