aboutsummaryrefslogtreecommitdiff
path: root/sqlite.go
diff options
context:
space:
mode:
authorJan Mercl <0xjnml@gmail.com>2020-07-30 17:13:42 +0200
committerJan Mercl <0xjnml@gmail.com>2020-07-30 17:13:42 +0200
commit3337c85b5e539021d90ccec9891d73b14c64671b (patch)
tree5772afec52b44db2fc97c3b5ca1544a2189bb3b8 /sqlite.go
parent2491c1ae5a0c50a7bd21d8f7709b8ba39dcc20eb (diff)
103 errors out of 202628 tests on Linux 64-bit little-endian
Diffstat (limited to 'sqlite.go')
-rw-r--r--sqlite.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/sqlite.go b/sqlite.go
index c1fb19b..7844001 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -627,7 +627,9 @@ func newConn(name string) (*conn, error) {
return nil, err
}
- return c, nil
+ // Default is set at compile time to 1024 because testfixture hard codes that value, fix it at runtime.
+ _, err = c.Exec("PRAGMA page_size = 4096;", nil)
+ return c, err
}
// const void *sqlite3_column_blob(sqlite3_stmt*, int iCol);