Skip to content

Commit 90c6b67

Browse files
authored
Merge pull request astaxie#1113 from danbaixi/patch-1
Update 05.5.md
2 parents aafdb1d + e574226 commit 90c6b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zh/05.5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242

4343
func init() {
4444
//注册驱动
45-
orm.RegisterDriver("mysql", orm.DR_MySQL)
45+
orm.RegisterDriver("mysql", orm.DRMySQL)
4646
//设置默认数据库
4747
orm.RegisterDataBase("default", "mysql", "root:root@/my_db?charset=utf8", 30)
4848
//注册定义的model

0 commit comments

Comments
 (0)