diff options
author | John Gallagher <johnkgallagher@gmail.com> | 2012-04-07 00:24:39 -0400 |
---|---|---|
committer | John Gallagher <johnkgallagher@gmail.com> | 2012-04-07 00:37:02 -0400 |
commit | db2c00ccd82fdbe1424e55b19aa43f3cf13aa5cb (patch) | |
tree | 0e45b77042e8c5e4a0d448fef06abda67a0263f2 /sqlite3.go | |
parent | Handle time.Time values with "timestamp" columns. (diff) | |
download | golite-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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))) } |