Skip to content

Commit

Permalink
Import mysql only once
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden committed Oct 28, 2024
1 parent c7f8a39 commit 2718a58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"log"

"github.com/go-mysql-org/go-mysql/mysql"
. "github.com/go-mysql-org/go-mysql/mysql"
"github.com/go-mysql-org/go-mysql/replication"
"github.com/siddontang/go/hack"
Expand Down Expand Up @@ -208,13 +207,13 @@ func (h EmptyHandler) HandleQuery(query string) (*Result, error) {
return nil, nil
}
if query == `select concat(@@version, ' ', @@version_comment)` {
r, err := mysql.BuildSimpleResultset([]string{"concat(@@version, ' ', @@version_comment)"}, [][]interface{}{
r, err := BuildSimpleResultset([]string{"concat(@@version, ' ', @@version_comment)"}, [][]interface{}{
{"8.0.11"},
}, false)
if err != nil {
return nil, err
}
return &mysql.Result{
return &Result{
Status: 0,
Warnings: 0,
InsertId: 0,
Expand Down

0 comments on commit 2718a58

Please sign in to comment.