aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);