fix bug of lost user info and use db stmt

This commit is contained in:
hebo
2019-08-30 12:46:26 +08:00
parent 3a616e9ff0
commit 82f3abbb25
2 changed files with 4 additions and 6 deletions

View File

@@ -345,12 +345,10 @@ func (ms *MysqlSession) GenerateQueryPiece() (qp model.QueryPiece) {
func filterQueryPieceBySQL(mqp *model.PooledMysqlQueryPiece, querySQL []byte) (model.QueryPiece) {
if mqp == nil || querySQL == nil {
return nil
} else if (uselessSQLPattern.Match(querySQL)) {
return nil
}
/*
else if (uselessSQLPattern.Match(querySQL)) {
return nil
}
*/
if ddlPatern.Match(querySQL) {
mqp.SetNeedSyncSend(true)