Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Commit

Permalink
avoid dot on database name since tidb is not supported pingcap/tidb#25
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Sep 7, 2015
1 parent 47a6395 commit 0009798
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tidb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import (
var showTestSql = true

func newTidbEngine() (*xorm.Engine, error) {
os.Remove("./tidb.db")
return xorm.NewEngine("tidb", "goleveldb://./tidb.db")
os.Remove("./tidb")
return xorm.NewEngine("tidb", "goleveldb://./tidb")
}

func newTidbDriverDB() (*sql.DB, error) {
os.Remove("./tidb.db")
return sql.Open("tidb", "goleveldb://./tidb.db")
os.Remove("./tidb")
return sql.Open("tidb", "goleveldb://./tidb")
}

func newCache() core.Cacher {
Expand Down

0 comments on commit 0009798

Please sign in to comment.