summaryrefslogtreecommitdiff
path: root/vendor/github.com/ncruces/go-sqlite3/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/ncruces/go-sqlite3/context.go')
-rw-r--r--vendor/github.com/ncruces/go-sqlite3/context.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/vendor/github.com/ncruces/go-sqlite3/context.go b/vendor/github.com/ncruces/go-sqlite3/context.go
index 7caf58626..154c228cf 100644
--- a/vendor/github.com/ncruces/go-sqlite3/context.go
+++ b/vendor/github.com/ncruces/go-sqlite3/context.go
@@ -227,6 +227,14 @@ func (ctx Context) ResultError(err error) {
}
}
+// ResultSubtype sets the subtype of the result of the function.
+//
+// https://sqlite.org/c3ref/result_subtype.html
+func (ctx Context) ResultSubtype(t uint) {
+ ctx.c.call("sqlite3_result_subtype",
+ stk_t(ctx.handle), stk_t(uint32(t)))
+}
+
// VTabNoChange may return true if a column is being fetched as part
// of an update during which the column value will not change.
//