aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeInt.h
diff options
context:
space:
mode:
authordrh <>2022-04-01 15:31:58 +0000
committerdrh <>2022-04-01 15:31:58 +0000
commit659fdb4da87b3eed2e5b5ec6369f63c34f682e2a (patch)
tree7330a3f93b5a88a91365f20490fc8d68ea9f95bb /src/vdbeInt.h
parentc4c0ff86643edcd3f87d14f41e92f967af8a84c8 (diff)
downloadsqlite-659fdb4da87b3eed2e5b5ec6369f63c34f682e2a.tar.gz
sqlite-659fdb4da87b3eed2e5b5ec6369f63c34f682e2a.zip
Have the sqlite3_context object carry the encoding for the prepared statement
that it represents, so that sqlite3_result() and similar can set the encoding according to the prepared statement, even if the database encoding has changed. dbsqlfuzz c409b10d0a6bccf78ab00f47e1d29d42ee5b3565 FossilOrigin-Name: d4e19314f564126e180e091f9135c7bc55a10442edb46fbd3a4cfad21201dfa6
Diffstat (limited to 'src/vdbeInt.h')
-rw-r--r--src/vdbeInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vdbeInt.h b/src/vdbeInt.h
index 45720b6a5..32c341eb8 100644
--- a/src/vdbeInt.h
+++ b/src/vdbeInt.h
@@ -369,6 +369,7 @@ struct sqlite3_context {
Vdbe *pVdbe; /* The VM that owns this context */
int iOp; /* Instruction number of OP_Function */
int isError; /* Error code returned by the function. */
+ u8 enc; /* Encoding to use for results */
u8 skipFlag; /* Skip accumulator loading if true */
u8 argc; /* Number of arguments */
sqlite3_value *argv[1]; /* Argument set */