Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
and suppress extra logs.
  • Loading branch information
ffffwh committed Nov 14, 2022
1 parent 3c71e5c commit 6f20972
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions driver/mysql/base/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ func GetTableColumnsSqle(sqleContext *sqle.Context, schema string,
newColumn.Default = []byte(v)
case fmt.Stringer:
newColumn.Default = v.String()
case nil:
newColumn.Default = nil
default:
newColumn.Default = nil
g.Logger.Warn("GetTableColumnsSqle: unknown type for a default value",
Expand Down
7 changes: 0 additions & 7 deletions driver/mysql/sql/sqlutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ func (this *RowMap) GetBool(key string) bool {
type Conn struct {
DbMutex *sync.Mutex
Db *gosql.Conn
Fde string

PsDeleteExecutedGtid *gosql.Stmt
PsInsertExecutedGtid *gosql.Stmt
Expand All @@ -136,12 +135,6 @@ func (c *Conn) SetGtidNextAutomatic(ctx context.Context) (err error) {
return err
}

type DB struct {
DbMutex *sync.Mutex
Db *gosql.DB
Fde string
}

func CreateDB(mysql_uri string) (*gosql.DB, error) {
db, err := gosql.Open("mysql", mysql_uri)
if err != nil {
Expand Down

0 comments on commit 6f20972

Please sign in to comment.