Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 7725b35

Browse files
committed
common: Allow "data_version" pragma so FTS5 vtable creation works
1 parent dd97435 commit 7725b35

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

common/sqlite.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ func AuthorizerLive(d interface{}, action sqlite.Action, tableName, funcName, db
211211
if tableName == "index_info" || tableName == "table_info" {
212212
return sqlite.AuthOk
213213
}
214+
215+
// The "data_version" Pragma is needed when creating FTS5 virtual tables
216+
if tableName == "data_version" {
217+
return sqlite.AuthOk
218+
}
214219
return sqlite.AuthDeny
215220
case sqlite.Function:
216221
if funcName == "load_extension" {

0 commit comments

Comments
 (0)