Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
rename constant comConnReset to comResetConnection, add preceding con…
…stants (comDaemon and comBinlogDumpGTID) to make their values auto-generated
  • Loading branch information
zenovich committed Aug 26, 2025
commit 8630716859e32cd546111022a3db457fd0fa1024
2 changes: 1 addition & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ func (mc *mysqlConn) startWatcher() {

// Reset resets the MySQL connection.
func (mc *mysqlConn) Reset(ctx context.Context) (err error) {
return mc.sendNoArgsCommandWithResultOK(ctx, comConnReset)
return mc.sendNoArgsCommandWithResultOK(ctx, comResetConnection)
}

func (mc *mysqlConn) CheckNamedValue(nv *driver.NamedValue) (err error) {
Expand Down
4 changes: 3 additions & 1 deletion const.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ const (
comStmtReset
comSetOption
comStmtFetch
comConnReset = 31
comDaemon
comBinlogDumpGTID
comResetConnection
)

// https://dev.mysql.com/doc/internals/en/com-query-response.html#packet-Protocol::ColumnType
Expand Down