aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2023-10-13 19:41:20 +0000
committerdrh <>2023-10-13 19:41:20 +0000
commitcc67a62fa01ecf2ebab6ddb52adc58d41d95f66a (patch)
treece41a598cebf6e9a899d64cd96d1b18cdae74a3e /src
parent6f12e51313287931e6a5728c5165ace04caf681d (diff)
downloadsqlite-cc67a62fa01ecf2ebab6ddb52adc58d41d95f66a.tar.gz
sqlite-cc67a62fa01ecf2ebab6ddb52adc58d41d95f66a.zip
Apply the correct affinity to DEFAULT values that are TRUE or FALSE.
FossilOrigin-Name: 4958db70c8103e249748fdeffc35f1c385e2e550e8a48697b82fcd797f3016be
Diffstat (limited to 'src')
-rw-r--r--src/vdbemem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vdbemem.c b/src/vdbemem.c
index e25efc977..27dfc73fd 100644
--- a/src/vdbemem.c
+++ b/src/vdbemem.c
@@ -1716,6 +1716,7 @@ static int valueFromExpr(
if( pVal ){
pVal->flags = MEM_Int;
pVal->u.i = pExpr->u.zToken[4]==0;
+ sqlite3ValueApplyAffinity(pVal, affinity, enc);
}
}