Skip to content

Commit 6f20972

Browse files
author
ffffwh
committed
cleanup
and suppress extra logs.
1 parent 3c71e5c commit 6f20972

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

driver/mysql/base/utils.go

+2
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ func GetTableColumnsSqle(sqleContext *sqle.Context, schema string,
554554
newColumn.Default = []byte(v)
555555
case fmt.Stringer:
556556
newColumn.Default = v.String()
557+
case nil:
558+
newColumn.Default = nil
557559
default:
558560
newColumn.Default = nil
559561
g.Logger.Warn("GetTableColumnsSqle: unknown type for a default value",

driver/mysql/sql/sqlutils.go

-7
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ func (this *RowMap) GetBool(key string) bool {
125125
type Conn struct {
126126
DbMutex *sync.Mutex
127127
Db *gosql.Conn
128-
Fde string
129128

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

139-
type DB struct {
140-
DbMutex *sync.Mutex
141-
Db *gosql.DB
142-
Fde string
143-
}
144-
145138
func CreateDB(mysql_uri string) (*gosql.DB, error) {
146139
db, err := gosql.Open("mysql", mysql_uri)
147140
if err != nil {

0 commit comments

Comments
 (0)