aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-02-04 00:55:27 +0000
committerdrh <drh@noemail.net>2020-02-04 00:55:27 +0000
commit40d1db8d20ed664abd7303f9ed1cd15f437ddd54 (patch)
tree6fc8a51aaf0488955c1adfcc5e3c22b0775badd8 /src
parent51f37b2bb81ee44c556ec66ba01077db1d145f86 (diff)
downloadsqlite-40d1db8d20ed664abd7303f9ed1cd15f437ddd54.tar.gz
sqlite-40d1db8d20ed664abd7303f9ed1cd15f437ddd54.zip
Fix a problem with the byte-code decompiler that was inserted by the
enhancements at [4248980a356f659b] FossilOrigin-Name: af63e95dcdd6e9741cdddc3698e857e3b8be40048d3036f939f3583e517c4eff
Diffstat (limited to 'src')
-rw-r--r--src/vdbeaux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c
index 5538af8da..69b6216c0 100644
--- a/src/vdbeaux.c
+++ b/src/vdbeaux.c
@@ -1489,8 +1489,7 @@ static int displayComment(
}
}else if( strncmp(zSynopsis+ii+1, "@NP", 3)==0 ){
sqlite3_context *pCtx = pOp->p4.pCtx;
- assert( pOp->p4type==P4_FUNCCTX );
- if( pCtx->argc==1 ){
+ if( pOp->p4type!=P4_FUNCCTX || pCtx->argc==1 ){
sqlite3_str_appendf(&x, "%d", v1);
}else if( pCtx->argc>1 ){
sqlite3_str_appendf(&x, "%d..%d", v1, v1+pCtx->argc-1);