Skip to content

Commit

Permalink
Merge branch '2.0-dev' into AddStatsIOTimeConsumedForStats-2.0-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 17, 2024
2 parents 3f25f5e + 410e6d5 commit 34e9abc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/frontend/mysql_protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (
"golang.org/x/exp/slices"

"github.com/matrixorigin/matrixone/pkg/common/moerr"
util2 "github.com/matrixorigin/matrixone/pkg/common/util"
"github.com/matrixorigin/matrixone/pkg/config"
"github.com/matrixorigin/matrixone/pkg/container/batch"
"github.com/matrixorigin/matrixone/pkg/container/types"
Expand Down Expand Up @@ -1215,7 +1216,7 @@ func (mp *MysqlProtocolImpl) writeStringFix(data []byte, pos int, value string,
// append a string with fixed length to the buffer
// return the buffer
func (mp *MysqlProtocolImpl) appendStringFix(value string, length int) error {
err := mp.append([]byte(value[:length])...)
err := mp.append(util2.UnsafeStringToBytes(value[:length])...)
if err != nil {
return err
}
Expand Down

0 comments on commit 34e9abc

Please sign in to comment.