Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,6 @@ func (s *session) FieldList(tableName string) ([]*ast.ResultField, error) {
return fields, nil
}

// mockCommitErrorOnce use to make sure gofail mockCommitError only mock commit error once.
var mockCommitErrorOnce = true

func (s *session) doCommit(ctx context.Context) error {
if !s.txn.Valid() {
return nil
Expand Down Expand Up @@ -2046,25 +2043,15 @@ func (s *session) recordTransactionCounter(err error) {
}

type multiQueryNoDelayRecordSet struct {
sqlexec.RecordSet

affectedRows uint64
lastMessage string
status uint16
warnCount uint16
lastInsertID uint64
}

func (c *multiQueryNoDelayRecordSet) Fields() []*ast.ResultField {
panic("unsupported method")
}

func (c *multiQueryNoDelayRecordSet) Next(ctx context.Context, chk *chunk.Chunk) error {
panic("unsupported method")
}

func (c *multiQueryNoDelayRecordSet) NewChunk() *chunk.Chunk {
panic("unsupported method")
}

func (c *multiQueryNoDelayRecordSet) Close() error {
return nil
}
Expand Down