aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authorJohn Gallagher <johnkgallagher@gmail.com>2012-04-07 00:24:39 -0400
committerJohn Gallagher <johnkgallagher@gmail.com>2012-04-07 00:37:02 -0400
commitdb2c00ccd82fdbe1424e55b19aa43f3cf13aa5cb (patch)
tree0e45b77042e8c5e4a0d448fef06abda67a0263f2 /sqlite3.go
parentHandle time.Time values with "timestamp" columns. (diff)
downloadgolite-db2c00ccd82fdbe1424e55b19aa43f3cf13aa5cb.tar.gz
golite-db2c00ccd82fdbe1424e55b19aa43f3cf13aa5cb.tar.xz
Increase busy timeout to 5 seconds.
500ms is short enough that go-sql-test sometimes fails with "database locked", and it's the value used by Python's sqlite3 driver.
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 26cd3d1..bff9aec 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -96,7 +96,7 @@ func (d *SQLiteDriver) Open(dsn string) (driver.Conn, error) {
return nil, errors.New("sqlite succeeded without returning a database")
}
- rv = C.sqlite3_busy_timeout(db, 500)
+ rv = C.sqlite3_busy_timeout(db, 5000)
if rv != C.SQLITE_OK {
return nil, errors.New(C.GoString(C.sqlite3_errmsg(db)))
}