aboutsummaryrefslogtreecommitdiff
path: root/sqlite.go
diff options
context:
space:
mode:
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);