Merge pull request #291 from diocles/patch-1

Fix sqlite "regexp" function name in documentation
This commit is contained in:
mattn
2016-03-25 01:18:33 +09:00

2
doc.go
View File

@@ -102,7 +102,7 @@ call RegisterFunction from ConnectHook.
sql.Register("sqlite3_with_go_func",
&sqlite3.SQLiteDriver{
ConnectHook: func(conn *sqlite3.SQLiteConn) error {
return conn.RegisterFunc("regex", regex, true)
return conn.RegisterFunc("regexp", regex, true)
},
})