forked from mirror/go-sqlite3
Fix sqlite "regexp" function name in documentation
This commit is contained in:
parent
76e335f60b
commit
7b2244eaa4
2
doc.go
2
doc.go
|
@ -102,7 +102,7 @@ call RegisterFunction from ConnectHook.
|
||||||
sql.Register("sqlite3_with_go_func",
|
sql.Register("sqlite3_with_go_func",
|
||||||
&sqlite3.SQLiteDriver{
|
&sqlite3.SQLiteDriver{
|
||||||
ConnectHook: func(conn *sqlite3.SQLiteConn) error {
|
ConnectHook: func(conn *sqlite3.SQLiteConn) error {
|
||||||
return conn.RegisterFunc("regex", regex, true)
|
return conn.RegisterFunc("regexp", regex, true)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue