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

Commit 447e6b3

Browse files
committed
common: add sqlite_version() to list of allowed SQLite functions
1 parent e92e07a commit 447e6b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/sqlite.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ const (
104104
fnJsonGroupObject function = "json_group_object"
105105
fnJsonEach function = "json_each"
106106
fnJsonTree function = "json_tree"
107+
108+
// Other functions we should allow
109+
fnVersion function = "sqlite_version"
107110
)
108111

109112
var SQLiteFunctions = []function{
@@ -183,6 +186,7 @@ var SQLiteFunctions = []function{
183186
fnJsonGroupObject,
184187
fnJsonEach,
185188
fnJsonTree,
189+
fnVersion,
186190
}
187191

188192
func init() {

0 commit comments

Comments
 (0)