fixed memory leak in func (stmt *Statement) ParseWithSpecialTableName
This commit is contained in:
parent
5d5f13686b
commit
a94c905875
@ -495,10 +495,10 @@ func (stmt *Statement) ParseWithSpecialTableName(value interface{}, specialTable
|
|||||||
if len(tables) == 2 {
|
if len(tables) == 2 {
|
||||||
stmt.TableExpr = &clause.Expr{SQL: stmt.Quote(stmt.Schema.Table)}
|
stmt.TableExpr = &clause.Expr{SQL: stmt.Quote(stmt.Schema.Table)}
|
||||||
stmt.Table = tables[1]
|
stmt.Table = tables[1]
|
||||||
tables = nil
|
//tables = nil
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
tables = nil
|
//tables = nil
|
||||||
|
|
||||||
stmt.Table = stmt.Schema.Table
|
stmt.Table = stmt.Schema.Table
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user