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

@@ -7,7 +7,7 @@ import (
)
var (
uselessSQLPattern = regexp.MustCompile(`(?i)^\s*(select 1|select @@version_comment limit 1|commit|begin)`)
uselessSQLPattern = regexp.MustCompile(`(?i)^\s*(select @@version_comment limit 1)`)
ddlPatern = regexp.MustCompile(`(?i)^\s*(create|alter|drop)`)
)