File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -503,10 +503,10 @@ func (mc *mysqlConn) finish() {
503
503
504
504
// Ping implements driver.Pinger interface
505
505
func (mc * mysqlConn ) Ping (ctx context.Context ) (err error ) {
506
- return mc .sendNoArgsCommandWithResultOK (ctx , comPing )
506
+ return mc .sendSimpleCommandOK (ctx , comPing )
507
507
}
508
508
509
- func (mc * mysqlConn ) sendNoArgsCommandWithResultOK (ctx context.Context , cmd byte ) (err error ) {
509
+ func (mc * mysqlConn ) sendSimpleCommandOK (ctx context.Context , cmd byte ) (err error ) {
510
510
if mc .closed .Load () {
511
511
return driver .ErrBadConn
512
512
}
@@ -687,7 +687,7 @@ func (mc *mysqlConn) startWatcher() {
687
687
688
688
// Reset resets the MySQL connection.
689
689
func (mc * mysqlConn ) Reset (ctx context.Context ) (err error ) {
690
- return mc .sendNoArgsCommandWithResultOK (ctx , comResetConnection )
690
+ return mc .sendSimpleCommandOK (ctx , comResetConnection )
691
691
}
692
692
693
693
func (mc * mysqlConn ) CheckNamedValue (nv * driver.NamedValue ) (err error ) {
Original file line number Diff line number Diff line change @@ -129,9 +129,9 @@ func TestCheckNamedValue(t *testing.T) {
129
129
}
130
130
}
131
131
132
- // TestNoArgsCommandCleanCancel tests passed context is cancelled at start.
132
+ // TestSimpleCommandOKCleanCancel tests passed context is cancelled at start.
133
133
// No packet should be sent. Connection should keep current status.
134
- func TestNoArgsCommandCleanCancel (t * testing.T ) {
134
+ func TestSimpleCommandOKCleanCancel (t * testing.T ) {
135
135
for _ , test := range []struct {
136
136
name string
137
137
funcToCall func (ctx context.Context , mc * mysqlConn ) error
@@ -168,7 +168,7 @@ func TestNoArgsCommandCleanCancel(t *testing.T) {
168
168
}
169
169
}
170
170
171
- func TestNoArgsCommandMarkBadConnection (t * testing.T ) {
171
+ func TestSimpleCommandOKMarkBadConnection (t * testing.T ) {
172
172
for _ , test := range []struct {
173
173
name string
174
174
funcToCall func (mc * mysqlConn ) error
@@ -196,7 +196,7 @@ func TestNoArgsCommandMarkBadConnection(t *testing.T) {
196
196
}
197
197
}
198
198
199
- func TestNoArgsCommandErrInvalidConn (t * testing.T ) {
199
+ func TestSimpleCommandOKErrInvalidConn (t * testing.T ) {
200
200
for _ , test := range []struct {
201
201
name string
202
202
funcToCall func (mc * mysqlConn ) error
You can’t perform that action at this time.
0 commit comments