We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253bbf4 commit 5b1175eCopy full SHA for 5b1175e
sqlite3_test.go
@@ -1239,14 +1239,14 @@ var customFunctionOnce sync.Once
1239
1240
func BenchmarkCustomFunctions(b *testing.B) {
1241
customFunctionOnce.Do(func() {
1242
- custom_add := func(a, b int64) int64 {
+ customAdd := func(a, b int64) int64 {
1243
return a + b
1244
}
1245
1246
sql.Register("sqlite3_BenchmarkCustomFunctions", &SQLiteDriver{
1247
ConnectHook: func(conn *SQLiteConn) error {
1248
// Impure function to force sqlite to reexecute it each time.
1249
- if err := conn.RegisterFunc("custom_add", custom_add, false); err != nil {
+ if err := conn.RegisterFunc("custom_add", customAdd, false); err != nil {
1250
return err
1251
1252
return nil
0 commit comments