Skip to content

Commit

Permalink
Update sql test
Browse files Browse the repository at this point in the history
  • Loading branch information
abericyang@gmail.com committed May 14, 2019
1 parent 0c93b59 commit d43d3a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/sql/sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ func TestSQL(t *testing.T) {
dbPass := env.GetEnvDefault(env.DBPass, "")
dbName := env.GetEnvDefault(env.DBName, "mysql")
db := GetSQLInstance()
_ = db.Connect(dbURL, "root", dbPass, dbName)
_ = db.Connect(dbURL, "root", dbPass, dbName, false)

_ = db.Connect(dbURL, "root", dbPass, dbName)
_ = db.Connect(dbURL, "root", dbPass, dbName, false)
log.SQL.Info("dbURL = " + db.DBUrl)
var user User
db.ExecSQL(&user, "select * from user where User=? limit 1", "root")
Expand Down

0 comments on commit d43d3a9

Please sign in to comment.